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

Unified Diff: content/child/child_thread.cc

Issue 63843002: Add ChildMessageFilter, a base class for renderer/worker cross-thread MessageFilter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RemoveFilter fix Created 7 years, 1 month 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
« no previous file with comments | « content/child/child_message_filter.cc ('k') | content/child/indexed_db/indexed_db_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread.cc
diff --git a/content/child/child_thread.cc b/content/child/child_thread.cc
index f4387ec2d592b9f8184406bfa3ebf263a0266a12..8147d93edf03f5edeceedb24402b29693b1db49a 100644
--- a/content/child/child_thread.cc
+++ b/content/child/child_thread.cc
@@ -201,8 +201,8 @@ void ChildThread::Init() {
channel_->AddFilter(new tracing::ChildTraceMessageFilter(
ChildProcess::current()->io_message_loop_proxy()));
channel_->AddFilter(resource_message_filter_.get());
- channel_->AddFilter(quota_message_filter_.get());
- channel_->AddFilter(service_worker_message_filter_.get());
+ channel_->AddFilter(quota_message_filter_->GetFilter());
+ channel_->AddFilter(service_worker_message_filter_->GetFilter());
// In single process mode we may already have a power monitor
if (!base::PowerMonitor::Get()) {
@@ -264,8 +264,6 @@ ChildThread::~ChildThread() {
IPC::Logging::GetInstance()->SetIPCSender(NULL);
#endif
- channel_->RemoveFilter(service_worker_message_filter_.get());
- channel_->RemoveFilter(quota_message_filter_.get());
channel_->RemoveFilter(histogram_message_filter_.get());
channel_->RemoveFilter(sync_message_filter_.get());
« no previous file with comments | « content/child/child_message_filter.cc ('k') | content/child/indexed_db/indexed_db_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698