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

Unified Diff: content/browser/profiler_message_filter.cc

Issue 142923005: Allow MessageFilters to restrict listening to specific message classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Working patch Created 6 years, 10 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/profiler_message_filter.cc
diff --git a/content/browser/profiler_message_filter.cc b/content/browser/profiler_message_filter.cc
index adea8e71fa04c7de706e0a6958abafb7c6890109..3fa5597018aac4ef998c323b442fa24d2df76c61 100644
--- a/content/browser/profiler_message_filter.cc
+++ b/content/browser/profiler_message_filter.cc
@@ -10,9 +10,16 @@
#include "content/common/child_process_messages.h"
namespace content {
+namespace {
+const uint32 kFilteredMessageClasses[] = {
+ ChildProcessMsgStart
+};
+} // namespace
ProfilerMessageFilter::ProfilerMessageFilter(int process_type)
- : process_type_(process_type) {
+ : BrowserMessageFilter(
+ kFilteredMessageClasses, arraysize(kFilteredMessageClasses)),
+ process_type_(process_type) {
}
void ProfilerMessageFilter::OnChannelConnected(int32 peer_pid) {

Powered by Google App Engine
This is Rietveld 408576698