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 17 matching lines...) Expand all Loading... |
28 #include "base/callback_forward.h" | 28 #include "base/callback_forward.h" |
29 #include "base/compiler_specific.h" | 29 #include "base/compiler_specific.h" |
30 #include "base/id_map.h" | 30 #include "base/id_map.h" |
31 #include "base/macros.h" | 31 #include "base/macros.h" |
32 #include "base/observer_list_threadsafe.h" | 32 #include "base/observer_list_threadsafe.h" |
33 #include "base/synchronization/lock.h" | 33 #include "base/synchronization/lock.h" |
34 #include "content/common/content_export.h" | 34 #include "content/common/content_export.h" |
35 #include "content/common/p2p_socket_type.h" | 35 #include "content/common/p2p_socket_type.h" |
36 #include "content/renderer/p2p/network_list_manager.h" | 36 #include "content/renderer/p2p/network_list_manager.h" |
37 #include "ipc/message_filter.h" | 37 #include "ipc/message_filter.h" |
| 38 #include "net/base/ip_address.h" |
38 #include "net/base/ip_address_number.h" | 39 #include "net/base/ip_address_number.h" |
39 #include "net/base/ip_endpoint.h" | 40 #include "net/base/ip_endpoint.h" |
40 #include "net/base/network_interfaces.h" | 41 #include "net/base/network_interfaces.h" |
41 | 42 |
42 namespace base { | 43 namespace base { |
43 class SingleThreadTaskRunner; | 44 class SingleThreadTaskRunner; |
44 } // namespace base | 45 } // namespace base |
45 | 46 |
46 namespace net { | 47 namespace net { |
47 class IPEndPoint; | 48 class IPEndPoint; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 128 |
128 // To indicate whether IPC could be invoked on this dispatcher. | 129 // To indicate whether IPC could be invoked on this dispatcher. |
129 bool connected_ = false; | 130 bool connected_ = false; |
130 | 131 |
131 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); | 132 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); |
132 }; | 133 }; |
133 | 134 |
134 } // namespace content | 135 } // namespace content |
135 | 136 |
136 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ | 137 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ |
OLD | NEW |