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

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

Issue 24514003: Make BrowserMessageFilter not derive from IPC::ChannelProxy::MessageFilter. This allows us to hide … (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/worker_host/worker_process_host.cc
===================================================================
--- content/browser/worker_host/worker_process_host.cc (revision 225900)
+++ content/browser/worker_host/worker_process_host.cc (working copy)
@@ -221,27 +221,26 @@
blob_storage_context,
partition_.filesystem_context(),
get_contexts_callback);
- process_->GetHost()->AddFilter(resource_message_filter);
+ process_->AddFilter(resource_message_filter);
worker_message_filter_ = new WorkerMessageFilter(
render_process_id, resource_context_, partition_,
base::Bind(&WorkerServiceImpl::next_worker_route_id,
base::Unretained(WorkerServiceImpl::GetInstance())));
- process_->GetHost()->AddFilter(worker_message_filter_.get());
- process_->GetHost()->AddFilter(new AppCacheDispatcherHost(
+ process_->AddFilter(worker_message_filter_.get());
+ process_->AddFilter(new AppCacheDispatcherHost(
partition_.appcache_service(), process_->GetData().id));
- process_->GetHost()->AddFilter(new FileAPIMessageFilter(
+ process_->AddFilter(new FileAPIMessageFilter(
process_->GetData().id,
url_request_context,
partition_.filesystem_context(),
blob_storage_context,
stream_context));
- process_->GetHost()->AddFilter(new FileUtilitiesMessageFilter(
+ process_->AddFilter(new FileUtilitiesMessageFilter(
process_->GetData().id));
- process_->GetHost()->AddFilter(new MimeRegistryMessageFilter());
- process_->GetHost()->AddFilter(
- new DatabaseMessageFilter(partition_.database_tracker()));
- process_->GetHost()->AddFilter(new QuotaDispatcherHost(
+ process_->AddFilter(new MimeRegistryMessageFilter());
+ process_->AddFilter(new DatabaseMessageFilter(partition_.database_tracker()));
+ process_->AddFilter(new QuotaDispatcherHost(
process_->GetData().id,
partition_.quota_manager(),
GetContentClient()->browser()->CreateQuotaPermissionContext()));
@@ -257,10 +256,9 @@
request_context_callback,
resource_context_);
socket_stream_dispatcher_host_ = socket_stream_dispatcher_host;
- process_->GetHost()->AddFilter(socket_stream_dispatcher_host);
- process_->GetHost()->AddFilter(
- new WorkerDevToolsMessageFilter(process_->GetData().id));
- process_->GetHost()->AddFilter(new IndexedDBDispatcherHost(
+ process_->AddFilter(socket_stream_dispatcher_host);
+ process_->AddFilter(new WorkerDevToolsMessageFilter(process_->GetData().id));
+ process_->AddFilter(new IndexedDBDispatcherHost(
process_->GetData().id, partition_.indexed_db_context()));
}
« no previous file with comments | « content/browser/worker_host/worker_message_filter.cc ('k') | content/public/browser/browser_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698