Index: content/browser/renderer_host/p2p/socket_host.cc |
=================================================================== |
--- content/browser/renderer_host/p2p/socket_host.cc (revision 207812) |
+++ content/browser/renderer_host/p2p/socket_host.cc (working copy) |
@@ -72,7 +72,8 @@ |
// static |
P2PSocketHost* P2PSocketHost::Create( |
- IPC::Sender* message_sender, int id, P2PSocketType type) { |
+ IPC::Sender* message_sender, int id, P2PSocketType type, |
+ net::URLRequestContextGetter* url_context) { |
switch (type) { |
case P2P_SOCKET_UDP: |
return new P2PSocketHostUdp(message_sender, id); |
@@ -86,16 +87,12 @@ |
message_sender, id, P2P_SOCKET_STUN_TCP_CLIENT); |
case P2P_SOCKET_TCP_CLIENT: |
- return new P2PSocketHostTcp(message_sender, id, type); |
- |
- case P2P_SOCKET_STUN_TCP_CLIENT: |
- return new P2PSocketHostStunTcp(message_sender, id, type); |
- |
case P2P_SOCKET_SSLTCP_CLIENT: |
- return new P2PSocketHostTcp(message_sender, id, type); |
+ return new P2PSocketHostTcp(message_sender, id, type, url_context); |
+ case P2P_SOCKET_STUN_TCP_CLIENT: |
case P2P_SOCKET_STUN_SSLTCP_CLIENT: |
- return new P2PSocketHostStunTcp(message_sender, id, type); |
+ return new P2PSocketHostStunTcp(message_sender, id, type, url_context); |
} |
NOTREACHED(); |