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

Unified Diff: content/browser/renderer_host/resource_message_filter.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/renderer_host/resource_message_filter.cc
===================================================================
--- content/browser/renderer_host/resource_message_filter.cc (revision 117096)
+++ content/browser/renderer_host/resource_message_filter.cc (working copy)
@@ -14,13 +14,11 @@
int child_id,
content::ProcessType process_type,
const content::ResourceContext* resource_context,
- URLRequestContextSelector* url_request_context_selector,
- ResourceDispatcherHost* resource_dispatcher_host)
+ URLRequestContextSelector* url_request_context_selector)
: child_id_(child_id),
process_type_(process_type),
resource_context_(resource_context),
- url_request_context_selector_(url_request_context_selector),
- resource_dispatcher_host_(resource_dispatcher_host) {
+ url_request_context_selector_(url_request_context_selector) {
DCHECK(resource_context);
DCHECK(url_request_context_selector);
}
@@ -33,12 +31,12 @@
// Unhook us from all pending network requests so they don't get sent to a
// deleted object.
- resource_dispatcher_host_->CancelRequestsForProcess(child_id_);
+ ResourceDispatcherHost::Get()->CancelRequestsForProcess(child_id_);
}
bool ResourceMessageFilter::OnMessageReceived(const IPC::Message& message,
bool* message_was_ok) {
- return resource_dispatcher_host_->OnMessageReceived(
+ return ResourceDispatcherHost::Get()->OnMessageReceived(
message, this, message_was_ok);
}

Powered by Google App Engine
This is Rietveld 408576698