| OLD | NEW | 
|    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 // P2PSocketDispatcher is a per-renderer object that dispatchers all |    5 // P2PSocketDispatcher is a per-renderer object that dispatchers all | 
|    6 // P2P messages received from the browser and relays all P2P messages |    6 // P2P messages received from the browser and relays all P2P messages | 
|    7 // sent to the browser. P2PSocketClient instances register themselves |    7 // sent to the browser. P2PSocketClient instances register themselves | 
|    8 // with the dispatcher using RegisterClient() and UnregisterClient(). |    8 // with the dispatcher using RegisterClient() and UnregisterClient(). | 
|    9 // |    9 // | 
|   10 // Relationship of classes. |   10 // Relationship of classes. | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   47  |   47  | 
|   48 namespace content { |   48 namespace content { | 
|   49  |   49  | 
|   50 class RenderViewImpl; |   50 class RenderViewImpl; | 
|   51 class P2PHostAddressRequest; |   51 class P2PHostAddressRequest; | 
|   52 class P2PSocketClient; |   52 class P2PSocketClient; | 
|   53  |   53  | 
|   54 class CONTENT_EXPORT P2PSocketDispatcher |   54 class CONTENT_EXPORT P2PSocketDispatcher | 
|   55     : public IPC::ChannelProxy::MessageFilter { |   55     : public IPC::ChannelProxy::MessageFilter { | 
|   56  public: |   56  public: | 
|   57   P2PSocketDispatcher(base::MessageLoopProxy* ipc_message_loop); |   57   explicit P2PSocketDispatcher(base::MessageLoopProxy* ipc_message_loop); | 
|   58  |   58  | 
|   59   // Add a new network list observer. Each observer is called |   59   // Add a new network list observer. Each observer is called | 
|   60   // immidiately after it is registered and then later whenever |   60   // immidiately after it is registered and then later whenever | 
|   61   // network configuration changes. Can be called on any thread. The |   61   // network configuration changes. Can be called on any thread. The | 
|   62   // observer is always called on the thread it was added. |   62   // observer is always called on the thread it was added. | 
|   63   void AddNetworkListObserver( |   63   void AddNetworkListObserver( | 
|   64       webkit_glue::NetworkListObserver* network_list_observer); |   64       webkit_glue::NetworkListObserver* network_list_observer); | 
|   65  |   65  | 
|   66   // Removes network list observer. Must be called on the thread on |   66   // Removes network list observer. Must be called on the thread on | 
|   67   // which the observer was added. |   67   // which the observer was added. | 
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  118       network_list_observers_; |  118       network_list_observers_; | 
|  119  |  119  | 
|  120   IPC::Channel* channel_; |  120   IPC::Channel* channel_; | 
|  121  |  121  | 
|  122   DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); |  122   DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); | 
|  123 }; |  123 }; | 
|  124  |  124  | 
|  125 }  // namespace content |  125 }  // namespace content | 
|  126  |  126  | 
|  127 #endif  // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ |  127 #endif  // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ | 
| OLD | NEW |