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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 namespace net { | 45 namespace net { |
46 class IPEndPoint; | 46 class IPEndPoint; |
47 } // namespace net | 47 } // namespace net |
48 | 48 |
49 namespace content { | 49 namespace content { |
50 | 50 |
51 class NetworkListObserver; | 51 class NetworkListObserver; |
52 class P2PAsyncAddressResolver; | 52 class P2PAsyncAddressResolver; |
53 class P2PSocketClientImpl; | 53 class P2PSocketClientImpl; |
54 class RenderViewImpl; | |
55 | 54 |
56 class CONTENT_EXPORT P2PSocketDispatcher : public IPC::MessageFilter, | 55 class CONTENT_EXPORT P2PSocketDispatcher : public IPC::MessageFilter, |
57 public NetworkListManager { | 56 public NetworkListManager { |
58 public: | 57 public: |
59 explicit P2PSocketDispatcher(base::SingleThreadTaskRunner* ipc_task_runner); | 58 explicit P2PSocketDispatcher(base::SingleThreadTaskRunner* ipc_task_runner); |
60 | 59 |
61 // NetworkListManager interface: | 60 // NetworkListManager interface: |
62 void AddNetworkListObserver( | 61 void AddNetworkListObserver( |
63 NetworkListObserver* network_list_observer) override; | 62 NetworkListObserver* network_list_observer) override; |
64 void RemoveNetworkListObserver( | 63 void RemoveNetworkListObserver( |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 124 |
126 // To indicate whether IPC could be invoked on this dispatcher. | 125 // To indicate whether IPC could be invoked on this dispatcher. |
127 bool connected_ = false; | 126 bool connected_ = false; |
128 | 127 |
129 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); | 128 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); |
130 }; | 129 }; |
131 | 130 |
132 } // namespace content | 131 } // namespace content |
133 | 132 |
134 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ | 133 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ |
OLD | NEW |