Index: trunk/src/content/browser/renderer_host/p2p/socket_host_tcp_server.cc |
=================================================================== |
--- trunk/src/content/browser/renderer_host/p2p/socket_host_tcp_server.cc (revision 273764) |
+++ trunk/src/content/browser/renderer_host/p2p/socket_host_tcp_server.cc (working copy) |
@@ -20,14 +20,14 @@ |
namespace content { |
-P2PSocketHostTcpServer::P2PSocketHostTcpServer(IPC::Sender* message_sender, |
- int socket_id, |
- P2PSocketType client_type) |
- : P2PSocketHost(message_sender, socket_id), |
+P2PSocketHostTcpServer::P2PSocketHostTcpServer( |
+ IPC::Sender* message_sender, int id, P2PSocketType client_type) |
+ : P2PSocketHost(message_sender, id), |
client_type_(client_type), |
socket_(new net::TCPServerSocket(NULL, net::NetLog::Source())), |
- accept_callback_(base::Bind(&P2PSocketHostTcpServer::OnAccepted, |
- base::Unretained(this))) { |
+ accept_callback_( |
+ base::Bind(&P2PSocketHostTcpServer::OnAccepted, |
+ base::Unretained(this))) { |
} |
P2PSocketHostTcpServer::~P2PSocketHostTcpServer() { |
@@ -135,8 +135,8 @@ |
if (client_type_ == P2P_SOCKET_TCP_CLIENT) { |
result.reset(new P2PSocketHostTcp(message_sender_, id, client_type_, NULL)); |
} else { |
- result.reset( |
- new P2PSocketHostStunTcp(message_sender_, id, client_type_, NULL)); |
+ result.reset(new P2PSocketHostStunTcp( |
+ message_sender_, id, client_type_, NULL)); |
} |
if (!result->InitAccepted(remote_address, socket)) |
return NULL; |