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

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

Issue 7715020: Move P2P code to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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_client.cc ('k') | content/renderer/p2p/socket_dispatcher.cc » ('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) 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 // 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 20 matching lines...) Expand all
31 #include "net/base/net_util.h" 31 #include "net/base/net_util.h"
32 32
33 namespace base { 33 namespace base {
34 class MessageLoopProxy; 34 class MessageLoopProxy;
35 } // namespace base 35 } // namespace base
36 36
37 namespace net { 37 namespace net {
38 class IPEndPoint; 38 class IPEndPoint;
39 } // namespace net 39 } // namespace net
40 40
41 namespace content {
42
41 class P2PHostAddressRequest; 43 class P2PHostAddressRequest;
42 class P2PSocketClient; 44 class P2PSocketClient;
43 45
44 // P2PSocketDispatcher works on the renderer thread. It dispatches all 46 // P2PSocketDispatcher works on the renderer thread. It dispatches all
45 // messages on that thread, and all its methods must be called on the 47 // messages on that thread, and all its methods must be called on the
46 // same thread. 48 // same thread.
47 class P2PSocketDispatcher : public RenderViewObserver { 49 class P2PSocketDispatcher : public RenderViewObserver {
48 public: 50 public:
49 class NetworkListObserver { 51 class NetworkListObserver {
50 public: 52 public:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 108
107 IDMap<P2PHostAddressRequest> host_address_requests_; 109 IDMap<P2PHostAddressRequest> host_address_requests_;
108 110
109 bool network_notifications_started_; 111 bool network_notifications_started_;
110 scoped_refptr<ObserverListThreadSafe<NetworkListObserver> > 112 scoped_refptr<ObserverListThreadSafe<NetworkListObserver> >
111 network_list_observers_; 113 network_list_observers_;
112 114
113 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); 115 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher);
114 }; 116 };
115 117
118 } // namespace content
119
116 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ 120 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/p2p/socket_client.cc ('k') | content/renderer/p2p/socket_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698