Index: content/browser/renderer_host/p2p/socket_dispatcher_host.cc |
=================================================================== |
--- content/browser/renderer_host/p2p/socket_dispatcher_host.cc (revision 206737) |
+++ content/browser/renderer_host/p2p/socket_dispatcher_host.cc (working copy) |
@@ -15,6 +15,9 @@ |
#include "net/base/net_log.h" |
#include "net/base/sys_addrinfo.h" |
#include "net/dns/single_request_host_resolver.h" |
+#include "net/http/http_request_info.h" |
+#include "net/url_request/url_request_context.h" |
+#include "net/url_request/url_request_context_getter.h" |
using content::BrowserMessageFilter; |
using content::BrowserThread; |
@@ -83,8 +86,10 @@ |
}; |
P2PSocketDispatcherHost::P2PSocketDispatcherHost( |
- content::ResourceContext* resource_context) |
+ content::ResourceContext* resource_context, |
+ net::URLRequestContextGetter* getter) |
: resource_context_(resource_context), |
+ context_getter_(getter), |
monitoring_networks_(false) { |
} |
@@ -188,7 +193,7 @@ |
} |
scoped_ptr<P2PSocketHost> socket( |
- P2PSocketHost::Create(this, socket_id, type)); |
+ P2PSocketHost::Create(this, socket_id, type, context_getter_)); |
if (!socket) { |
Send(new P2PMsg_OnError(socket_id)); |