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

Unified Diff: content/browser/browser_plugin/browser_plugin_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/browser_plugin/browser_plugin_message_filter.cc
diff --git a/content/browser/browser_plugin/browser_plugin_message_filter.cc b/content/browser/browser_plugin/browser_plugin_message_filter.cc
index 031797a46c4bbb6b81551c64954db976577c930a..60bf571909a8f94bbb7847c951aa014ac5bfb504 100644
--- a/content/browser/browser_plugin/browser_plugin_message_filter.cc
+++ b/content/browser/browser_plugin/browser_plugin_message_filter.cc
@@ -16,10 +16,17 @@
#include "content/public/browser/render_view_host.h"
namespace content {
+namespace {
+const uint32 kFilteredMessageClasses[] = {
+ BrowserPluginMsgStart,
+};
+} // namespace
BrowserPluginMessageFilter::BrowserPluginMessageFilter(int render_process_id,
bool is_guest)
- : render_process_id_(render_process_id),
+ : BrowserMessageFilter(
+ kFilteredMessageClasses, arraysize(kFilteredMessageClasses)),
+ render_process_id_(render_process_id),
is_guest_(is_guest) {
}

Powered by Google App Engine
This is Rietveld 408576698