Commit 7dc8cb44 authored by sergeyu@chromium.org's avatar sergeyu@chromium.org

Update comments in socket_dispatcher.h.

Review URL: https://chromiumcodereview.appspot.com/10093012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132594 0039d316-1c4b-4281-b951-d872f2087c98
parent 4eb6b0a8
......@@ -15,6 +15,8 @@
// v IPC v
// P2PSocketDispatcherHost <---------> P2PSocketDispatcher
//
// P2PSocketDispatcher receives and dispatches messages on the
// renderer thread.
#ifndef CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_
#define CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_
......@@ -50,9 +52,6 @@ namespace content {
class P2PHostAddressRequest;
class P2PSocketClient;
// P2PSocketDispatcher works on the renderer thread. It dispatches all
// messages on that thread, and all its methods must be called on the
// same thread.
class CONTENT_EXPORT P2PSocketDispatcher : public content::RenderViewObserver {
public:
explicit P2PSocketDispatcher(RenderViewImpl* render_view);
......@@ -60,11 +59,13 @@ class CONTENT_EXPORT P2PSocketDispatcher : public content::RenderViewObserver {
// Add a new network list observer. Each observer is called
// immidiately after it is registered and then later whenever
// network configuration changes.
// network configuration changes. Can be called on any thread. The
// observer is always called on the thread it was added.
void AddNetworkListObserver(
webkit_glue::NetworkListObserver* network_list_observer);
// Removes network list observer.
// Removes network list observer. Must be called on the thread on
// which the observer was added.
void RemoveNetworkListObserver(
webkit_glue::NetworkListObserver* network_list_observer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment