Chromium Code Reviews| Index: content/browser/renderer_host/p2p/socket_host.cc |
| =================================================================== |
| --- content/browser/renderer_host/p2p/socket_host.cc (revision 206737) |
| +++ content/browser/renderer_host/p2p/socket_host.cc (working copy) |
| @@ -72,24 +72,25 @@ |
| // static |
| P2PSocketHost* P2PSocketHost::Create( |
| - IPC::Sender* message_sender, int id, P2PSocketType type) { |
| + IPC::Sender* message_sender, int id, P2PSocketType type, |
| + net::URLRequestContextGetter* context_getter) { |
|
Sergey Ulanov
2013/06/20 01:50:02
use the same name here and in the header. I would
Mallinath (Gone from Chromium)
2013/06/20 05:24:15
Done.
|
| switch (type) { |
| case P2P_SOCKET_UDP: |
| return new P2PSocketHostUdp(message_sender, id); |
| case P2P_SOCKET_TCP_SERVER: |
| return new P2PSocketHostTcpServer( |
| - message_sender, id, P2P_SOCKET_TCP_CLIENT); |
| + message_sender, id, P2P_SOCKET_TCP_CLIENT, context_getter); |
| case P2P_SOCKET_STUN_TCP_SERVER: |
| return new P2PSocketHostTcpServer( |
| - message_sender, id, P2P_SOCKET_STUN_TCP_CLIENT); |
| + message_sender, id, P2P_SOCKET_STUN_TCP_CLIENT, context_getter); |
| case P2P_SOCKET_TCP_CLIENT: |
| - return new P2PSocketHostTcp(message_sender, id); |
| + return new P2PSocketHostTcp(message_sender, id, context_getter); |
| case P2P_SOCKET_STUN_TCP_CLIENT: |
| - return new P2PSocketHostStunTcp(message_sender, id); |
| + return new P2PSocketHostStunTcp(message_sender, id, context_getter); |
| } |
| NOTREACHED(); |