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 #include "content/renderer/p2p/socket_dispatcher.h" | 5 #include "content/renderer/p2p/socket_dispatcher.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "content/child/child_process.h" | 10 #include "content/child/child_process.h" |
11 #include "content/common/p2p_messages.h" | 11 #include "content/common/p2p_messages.h" |
12 #include "content/renderer/p2p/host_address_request.h" | 12 #include "content/renderer/p2p/host_address_request.h" |
13 #include "content/renderer/p2p/network_list_observer.h" | 13 #include "content/renderer/p2p/network_list_observer.h" |
14 #include "content/renderer/p2p/socket_client_impl.h" | 14 #include "content/renderer/p2p/socket_client_impl.h" |
15 #include "content/renderer/render_view_impl.h" | 15 #include "content/renderer/render_view_impl.h" |
| 16 #include "ipc/ipc_channel.h" |
16 | 17 |
17 namespace content { | 18 namespace content { |
18 | 19 |
19 P2PSocketDispatcher::P2PSocketDispatcher( | 20 P2PSocketDispatcher::P2PSocketDispatcher( |
20 base::MessageLoopProxy* ipc_message_loop) | 21 base::MessageLoopProxy* ipc_message_loop) |
21 : message_loop_(ipc_message_loop), | 22 : message_loop_(ipc_message_loop), |
22 network_notifications_started_(false), | 23 network_notifications_started_(false), |
23 network_list_observers_( | 24 network_list_observers_( |
24 new ObserverListThreadSafe<NetworkListObserver>()), | 25 new ObserverListThreadSafe<NetworkListObserver>()), |
25 channel_(NULL) { | 26 channel_(NULL) { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // hasn't processed the close message by the time it sends the | 185 // hasn't processed the close message by the time it sends the |
185 // message to the renderer. | 186 // message to the renderer. |
186 VLOG(1) << "Received P2P message for socket that doesn't exist."; | 187 VLOG(1) << "Received P2P message for socket that doesn't exist."; |
187 return NULL; | 188 return NULL; |
188 } | 189 } |
189 | 190 |
190 return client; | 191 return client; |
191 } | 192 } |
192 | 193 |
193 } // namespace content | 194 } // namespace content |
OLD | NEW |