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

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

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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) 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 15 matching lines...) Expand all
26 #include "base/callback_forward.h" 26 #include "base/callback_forward.h"
27 #include "base/compiler_specific.h" 27 #include "base/compiler_specific.h"
28 #include "base/id_map.h" 28 #include "base/id_map.h"
29 #include "base/observer_list_threadsafe.h" 29 #include "base/observer_list_threadsafe.h"
30 #include "base/synchronization/lock.h" 30 #include "base/synchronization/lock.h"
31 #include "content/common/content_export.h" 31 #include "content/common/content_export.h"
32 #include "content/common/p2p_sockets.h" 32 #include "content/common/p2p_sockets.h"
33 #include "ipc/ipc_channel_proxy.h" 33 #include "ipc/ipc_channel_proxy.h"
34 #include "net/base/net_util.h" 34 #include "net/base/net_util.h"
35 35
36 class RenderViewImpl;
37
38 namespace base { 36 namespace base {
39 class MessageLoopProxy; 37 class MessageLoopProxy;
40 } // namespace base 38 } // namespace base
41 39
42 namespace net { 40 namespace net {
43 class IPEndPoint; 41 class IPEndPoint;
44 } // namespace net 42 } // namespace net
45 43
46 namespace webkit_glue { 44 namespace webkit_glue {
47 class NetworkListObserver; 45 class NetworkListObserver;
48 } // webkit_glue 46 } // webkit_glue
49 47
50 namespace content { 48 namespace content {
51 49
50 class RenderViewImpl;
52 class P2PHostAddressRequest; 51 class P2PHostAddressRequest;
53 class P2PSocketClient; 52 class P2PSocketClient;
54 53
55 class CONTENT_EXPORT P2PSocketDispatcher 54 class CONTENT_EXPORT P2PSocketDispatcher
56 : public IPC::ChannelProxy::MessageFilter { 55 : public IPC::ChannelProxy::MessageFilter {
57 public: 56 public:
58 P2PSocketDispatcher(base::MessageLoopProxy* ipc_message_loop); 57 P2PSocketDispatcher(base::MessageLoopProxy* ipc_message_loop);
59 58
60 // Add a new network list observer. Each observer is called 59 // Add a new network list observer. Each observer is called
61 // immidiately after it is registered and then later whenever 60 // immidiately after it is registered and then later whenever
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 network_list_observers_; 118 network_list_observers_;
120 119
121 IPC::Channel* channel_; 120 IPC::Channel* channel_;
122 121
123 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); 122 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher);
124 }; 123 };
125 124
126 } // namespace content 125 } // namespace content
127 126
128 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ 127 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/notification_provider.cc ('k') | content/renderer/pepper/content_renderer_pepper_host_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698