Index: content/browser/renderer_host/p2p/socket_dispatcher_host.cc |
=================================================================== |
--- content/browser/renderer_host/p2p/socket_dispatcher_host.cc (revision 207453) |
+++ 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)); |