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

Unified Diff: content/browser/worker_host/worker_process_host.cc

Issue 9150016: Move creation and ownership of ResourceDispatcherHost and PluginService to content. This gives a ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix chromeos ui_tests Created 8 years, 11 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/worker_host/worker_process_host.cc
===================================================================
--- content/browser/worker_host/worker_process_host.cc (revision 117096)
+++ content/browser/worker_host/worker_process_host.cc (working copy)
@@ -85,11 +85,9 @@
}
WorkerProcessHost::WorkerProcessHost(
- const content::ResourceContext* resource_context,
- ResourceDispatcherHost* resource_dispatcher_host)
+ const content::ResourceContext* resource_context)
: BrowserChildProcessHost(content::PROCESS_TYPE_WORKER),
- resource_context_(resource_context),
- resource_dispatcher_host_(resource_dispatcher_host) {
+ resource_context_(resource_context) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
DCHECK(resource_context);
}
@@ -239,12 +237,11 @@
ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
id(), content::PROCESS_TYPE_WORKER, resource_context_,
- new URLRequestContextSelector(request_context),
- resource_dispatcher_host_);
+ new URLRequestContextSelector(request_context));
child_process_host()->AddFilter(resource_message_filter);
worker_message_filter_ = new WorkerMessageFilter(
- render_process_id, resource_context_, resource_dispatcher_host_,
+ render_process_id, resource_context_,
base::Bind(&WorkerServiceImpl::next_worker_route_id,
base::Unretained(WorkerServiceImpl::GetInstance())));
child_process_host()->AddFilter(worker_message_filter_);

Powered by Google App Engine
This is Rietveld 408576698