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

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

Issue 7715020: Move P2P code to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/message_loop_proxy.h" 7 #include "base/message_loop_proxy.h"
8 #include "content/common/p2p_messages.h" 8 #include "content/common/p2p_messages.h"
9 #include "content/renderer/p2p/host_address_request.h" 9 #include "content/renderer/p2p/host_address_request.h"
10 #include "content/renderer/p2p/socket_client.h" 10 #include "content/renderer/p2p/socket_client.h"
11 11
12 namespace content {
13
12 P2PSocketDispatcher::P2PSocketDispatcher(RenderView* render_view) 14 P2PSocketDispatcher::P2PSocketDispatcher(RenderView* render_view)
13 : RenderViewObserver(render_view), 15 : RenderViewObserver(render_view),
14 message_loop_(base::MessageLoopProxy::current()), 16 message_loop_(base::MessageLoopProxy::current()),
15 network_notifications_started_(false), 17 network_notifications_started_(false),
16 network_list_observers_( 18 network_list_observers_(
17 new ObserverListThreadSafe<NetworkListObserver>()) { 19 new ObserverListThreadSafe<NetworkListObserver>()) {
18 } 20 }
19 21
20 P2PSocketDispatcher::~P2PSocketDispatcher() { 22 P2PSocketDispatcher::~P2PSocketDispatcher() {
21 if (network_notifications_started_) 23 if (network_notifications_started_)
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 if (client == NULL) { 137 if (client == NULL) {
136 // This may happen if the socket was closed, but the browser side 138 // This may happen if the socket was closed, but the browser side
137 // hasn't processed the close message by the time it sends the 139 // hasn't processed the close message by the time it sends the
138 // message to the renderer. 140 // message to the renderer.
139 VLOG(1) << "Received P2P message for socket that doesn't exist."; 141 VLOG(1) << "Received P2P message for socket that doesn't exist.";
140 return NULL; 142 return NULL;
141 } 143 }
142 144
143 return client; 145 return client;
144 } 146 }
147
148 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/p2p/socket_dispatcher.h ('k') | content/renderer/pepper_plugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698