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

Unified Diff: content/renderer/p2p/ipc_socket_factory.cc

Issue 45183002: Expose the p2p client in content/public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missed a file Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/p2p/ipc_socket_factory.cc
diff --git a/content/renderer/p2p/ipc_socket_factory.cc b/content/renderer/p2p/ipc_socket_factory.cc
index bd8fb315c114c39ce81250a98512894654c82391..760a8763a5f44c1c16a180d1efed7cf1ff281b79 100644
--- a/content/renderer/p2p/ipc_socket_factory.cc
+++ b/content/renderer/p2p/ipc_socket_factory.cc
@@ -62,8 +62,9 @@ class IpcPacketSocket : public talk_base::AsyncPacketSocket,
// P2PSocketClient::Delegate implementation.
virtual void OnOpen(const net::IPEndPoint& address) OVERRIDE;
- virtual void OnIncomingTcpConnection(const net::IPEndPoint& address,
- P2PSocketClient* client) OVERRIDE;
+ virtual void OnIncomingTcpConnection(
+ const net::IPEndPoint& address,
+ P2PSocketClientInterface* client) OVERRIDE;
virtual void OnSendComplete() OVERRIDE;
virtual void OnError() OVERRIDE;
virtual void OnDataReceived(const net::IPEndPoint& address,
@@ -83,7 +84,7 @@ class IpcPacketSocket : public talk_base::AsyncPacketSocket,
// |in_flight_packet_sizes_|.
void TraceSendThrottlingState() const;
- void InitAcceptedTcp(P2PSocketClient* client,
+ void InitAcceptedTcp(P2PSocketClientInterface* client,
const talk_base::SocketAddress& local_address,
const talk_base::SocketAddress& remote_address);
P2PSocketType type_;
@@ -92,7 +93,7 @@ class IpcPacketSocket : public talk_base::AsyncPacketSocket,
base::MessageLoop* message_loop_;
// Corresponding P2P socket client.
- scoped_refptr<P2PSocketClient> client_;
+ scoped_refptr<P2PSocketClientInterface> client_;
// Local address is allocated by the browser process, and the
// renderer side doesn't know the address until it receives OnOpen()
@@ -179,7 +180,7 @@ bool IpcPacketSocket::Init(P2PSocketType type, P2PSocketClient* client,
}
void IpcPacketSocket::InitAcceptedTcp(
- P2PSocketClient* client,
+ P2PSocketClientInterface* client,
const talk_base::SocketAddress& local_address,
const talk_base::SocketAddress& remote_address) {
DCHECK_EQ(base::MessageLoop::current(), message_loop_);
@@ -339,7 +340,7 @@ void IpcPacketSocket::OnOpen(const net::IPEndPoint& address) {
void IpcPacketSocket::OnIncomingTcpConnection(
const net::IPEndPoint& address,
- P2PSocketClient* client) {
+ P2PSocketClientInterface* client) {
DCHECK_EQ(base::MessageLoop::current(), message_loop_);
scoped_ptr<IpcPacketSocket> socket(new IpcPacketSocket());

Powered by Google App Engine
This is Rietveld 408576698