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

Unified Diff: content/common/child_thread.cc

Issue 14646006: Inject timestamps to resource messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nit. Added distinct ChildResourceFilter back. Created 7 years, 7 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/common/child_thread.cc
diff --git a/content/common/child_thread.cc b/content/common/child_thread.cc
index 5cbc39f23e6e46c4e2a85b455964962ffca86cd8..0d6e33670b5a4ff38d2bda111eed05ff7aab2999 100644
--- a/content/common/child_thread.cc
+++ b/content/common/child_thread.cc
@@ -15,6 +15,7 @@
#include "content/common/child_histogram_message_filter.h"
#include "content/common/child_process.h"
#include "content/common/child_process_messages.h"
+#include "content/common/child_resource_message_filter.h"
#include "content/common/fileapi/file_system_dispatcher.h"
#include "content/common/quota_dispatcher.h"
#include "content/common/resource_dispatcher.h"
@@ -119,11 +120,14 @@ void ChildThread::Init() {
new ThreadSafeSender(base::MessageLoopProxy::current(),
sync_message_filter_);
histogram_message_filter_ = new ChildHistogramMessageFilter();
+ resource_message_filter_ =
+ new ChildResourceMessageFilter(resource_dispatcher());
channel_->AddFilter(histogram_message_filter_.get());
channel_->AddFilter(sync_message_filter_.get());
channel_->AddFilter(new tracing::ChildTraceMessageFilter(
ChildProcess::current()->io_message_loop_proxy()));
+ channel_->AddFilter(resource_message_filter_.get());
#if defined(OS_POSIX)
// Check that --process-type is specified so we don't do this in unit tests

Powered by Google App Engine
This is Rietveld 408576698