Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: content/renderer/p2p/socket_dispatcher.cc

Issue 245443005: Move IPC::MessageFilter and router to a separate file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gn build Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/p2p/socket_dispatcher.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/p2p/socket_dispatcher.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698