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

Unified Diff: content/browser/renderer_host/socket_stream_dispatcher_host.cc

Issue 23851010: Modify ResourceMessageFilter so that it can support attaching to PluginProcessHost. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 3 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/socket_stream_dispatcher_host.cc
===================================================================
--- content/browser/renderer_host/socket_stream_dispatcher_host.cc (revision 222038)
+++ content/browser/renderer_host/socket_stream_dispatcher_host.cc (working copy)
@@ -30,14 +30,13 @@
SocketStreamDispatcherHost::SocketStreamDispatcherHost(
int render_process_id,
- ResourceMessageFilter::URLRequestContextSelector* selector,
+ const GetRequestContextCallback& request_context_callback,
ResourceContext* resource_context)
: render_process_id_(render_process_id),
- url_request_context_selector_(selector),
+ request_context_callback_(request_context_callback),
resource_context_(resource_context),
weak_ptr_factory_(this),
on_shutdown_(false) {
- DCHECK(selector);
net::WebSocketJob::EnsureInit();
}
@@ -263,8 +262,7 @@
}
net::URLRequestContext* SocketStreamDispatcherHost::GetURLRequestContext() {
- return url_request_context_selector_->GetRequestContext(
- ResourceType::SUB_RESOURCE);
+ return request_context_callback_.Run(ResourceType::SUB_RESOURCE);
}
void SocketStreamDispatcherHost::Shutdown() {
« no previous file with comments | « content/browser/renderer_host/socket_stream_dispatcher_host.h ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698