Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: content/browser/renderer_host/p2p/socket_host.cc

Issue 17132012: Proxy support for P2P TCP Socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698