Chromium Code Reviews| Index: content/browser/renderer_host/p2p/socket_host_tcp_server.cc |
| =================================================================== |
| --- content/browser/renderer_host/p2p/socket_host_tcp_server.cc (revision 206737) |
| +++ content/browser/renderer_host/p2p/socket_host_tcp_server.cc (working copy) |
| @@ -13,6 +13,8 @@ |
| #include "net/base/net_errors.h" |
| #include "net/base/net_util.h" |
| #include "net/socket/stream_socket.h" |
| +#include "net/url_request/url_request_context.h" |
| +#include "net/url_request/url_request_context_getter.h" |
| namespace { |
| const int kListenBacklog = 5; |
| @@ -21,9 +23,11 @@ |
| namespace content { |
| P2PSocketHostTcpServer::P2PSocketHostTcpServer( |
| - IPC::Sender* message_sender, int id, P2PSocketType client_type) |
| + IPC::Sender* message_sender, int id, P2PSocketType client_type, |
| + net::URLRequestContextGetter* context_getter) |
|
Sergey Ulanov
2013/06/20 01:50:02
I think you don't really need context_getter here.
Mallinath (Gone from Chromium)
2013/06/20 05:24:15
Agree. Done.
|
| : P2PSocketHost(message_sender, id), |
| client_type_(client_type), |
| + context_getter_(context_getter), |
| socket_(new net::TCPServerSocket(NULL, net::NetLog::Source())), |
| accept_callback_( |
| base::Bind(&P2PSocketHostTcpServer::OnAccepted, |
| @@ -131,9 +135,10 @@ |
| scoped_ptr<P2PSocketHostTcpBase> result; |
| if (client_type_ == P2P_SOCKET_TCP_CLIENT) { |
| - result.reset(new P2PSocketHostTcp(message_sender_, id)); |
| + result.reset(new P2PSocketHostTcp(message_sender_, id, context_getter_)); |
| } else { |
| - result.reset(new P2PSocketHostStunTcp(message_sender_, id)); |
| + result.reset(new P2PSocketHostStunTcp( |
| + message_sender_, id, context_getter_)); |
| } |
| if (!result->InitAccepted(remote_address, socket)) |
| return NULL; |