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

Unified Diff: content/browser/renderer_host/p2p/socket_host_tcp_server.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_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;

Powered by Google App Engine
This is Rietveld 408576698