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

Unified Diff: content/browser/renderer_host/p2p/socket_dispatcher_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_dispatcher_host.cc
===================================================================
--- content/browser/renderer_host/p2p/socket_dispatcher_host.cc (revision 207812)
+++ content/browser/renderer_host/p2p/socket_dispatcher_host.cc (working copy)
@@ -15,6 +15,7 @@
#include "net/base/net_log.h"
#include "net/base/sys_addrinfo.h"
#include "net/dns/single_request_host_resolver.h"
+#include "net/url_request/url_request_context_getter.h"
using content::BrowserMessageFilter;
using content::BrowserThread;
@@ -83,8 +84,10 @@
};
P2PSocketDispatcherHost::P2PSocketDispatcherHost(
- content::ResourceContext* resource_context)
+ content::ResourceContext* resource_context,
+ net::URLRequestContextGetter* url_context)
: resource_context_(resource_context),
+ url_context_(url_context),
monitoring_networks_(false) {
}
@@ -188,7 +191,7 @@
}
scoped_ptr<P2PSocketHost> socket(
- P2PSocketHost::Create(this, socket_id, type));
+ P2PSocketHost::Create(this, socket_id, type, url_context_));
if (!socket) {
Send(new P2PMsg_OnError(socket_id));
« no previous file with comments | « content/browser/renderer_host/p2p/socket_dispatcher_host.h ('k') | content/browser/renderer_host/p2p/socket_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698