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()); |