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 11 matching lines...) Expand all Loading... |
22 #define CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ | 22 #define CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ |
23 | 23 |
24 #include <vector> | 24 #include <vector> |
25 | 25 |
26 #include "base/callback_forward.h" | 26 #include "base/callback_forward.h" |
27 #include "base/compiler_specific.h" | 27 #include "base/compiler_specific.h" |
28 #include "base/id_map.h" | 28 #include "base/id_map.h" |
29 #include "base/observer_list_threadsafe.h" | 29 #include "base/observer_list_threadsafe.h" |
30 #include "base/synchronization/lock.h" | 30 #include "base/synchronization/lock.h" |
31 #include "content/common/content_export.h" | 31 #include "content/common/content_export.h" |
32 #include "content/common/p2p_sockets.h" | 32 #include "content/public/common/p2p_sockets.h" |
33 #include "ipc/ipc_channel_proxy.h" | 33 #include "ipc/ipc_channel_proxy.h" |
34 #include "net/base/net_util.h" | 34 #include "net/base/net_util.h" |
35 | 35 |
36 namespace base { | 36 namespace base { |
37 class MessageLoopProxy; | 37 class MessageLoopProxy; |
38 } // namespace base | 38 } // namespace base |
39 | 39 |
40 namespace net { | 40 namespace net { |
41 class IPEndPoint; | 41 class IPEndPoint; |
42 } // namespace net | 42 } // namespace net |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 network_list_observers_; | 114 network_list_observers_; |
115 | 115 |
116 IPC::Channel* channel_; | 116 IPC::Channel* channel_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); | 118 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace content | 121 } // namespace content |
122 | 122 |
123 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ | 123 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ |
OLD | NEW |