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

Unified Diff: content/renderer/p2p/socket_dispatcher.h

Issue 45183002: Expose the p2p client in content/public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (most) comments addressed Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/p2p/socket_dispatcher.h
diff --git a/content/renderer/p2p/socket_dispatcher.h b/content/renderer/p2p/socket_dispatcher.h
index 34c78a15e87a85d7980c31a7a5f03326969766f8..664d1e0998cec40a411a3653a4a555936b8efcd0 100644
--- a/content/renderer/p2p/socket_dispatcher.h
+++ b/content/renderer/p2p/socket_dispatcher.h
@@ -29,7 +29,7 @@
#include "base/observer_list_threadsafe.h"
#include "base/synchronization/lock.h"
#include "content/common/content_export.h"
-#include "content/common/p2p_sockets.h"
+#include "content/public/common/p2p_socket_type.h"
#include "ipc/ipc_channel_proxy.h"
#include "net/base/net_util.h"
@@ -46,7 +46,7 @@ namespace content {
class NetworkListObserver;
class RenderViewImpl;
class P2PHostAddressRequest;
-class P2PSocketClient;
+class P2PSocketClientImpl;
class CONTENT_EXPORT P2PSocketDispatcher
: public IPC::ChannelProxy::MessageFilter {
@@ -68,7 +68,7 @@ class CONTENT_EXPORT P2PSocketDispatcher
private:
friend class P2PHostAddressRequest;
- friend class P2PSocketClient;
+ friend class P2PSocketClientImpl;
// Send a message asynchronously.
virtual void Send(IPC::Message* message);
@@ -83,7 +83,7 @@ class CONTENT_EXPORT P2PSocketDispatcher
base::MessageLoopProxy* message_loop();
// Called by P2PSocketClient.
- int RegisterClient(P2PSocketClient* client);
+ int RegisterClient(P2PSocketClientImpl* client);
void UnregisterClient(int id);
void SendP2PMessage(IPC::Message* msg);
@@ -102,10 +102,10 @@ class CONTENT_EXPORT P2PSocketDispatcher
void OnDataReceived(int socket_id, const net::IPEndPoint& address,
const std::vector<char>& data);
- P2PSocketClient* GetClient(int socket_id);
+ P2PSocketClientImpl* GetClient(int socket_id);
scoped_refptr<base::MessageLoopProxy> message_loop_;
- IDMap<P2PSocketClient> clients_;
+ IDMap<P2PSocketClientImpl> clients_;
IDMap<P2PHostAddressRequest> host_address_requests_;

Powered by Google App Engine
This is Rietveld 408576698