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

Unified Diff: content/browser/appcache/appcache_dispatcher_host.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/appcache/appcache_dispatcher_host.cc
diff --git a/content/browser/appcache/appcache_dispatcher_host.cc b/content/browser/appcache/appcache_dispatcher_host.cc
index 2ce0d83290f183c95e7fa8e674706d937350cdb8..7d8af58bb3036d1f44c5f735eb8f43dd704c4896 100644
--- a/content/browser/appcache/appcache_dispatcher_host.cc
+++ b/content/browser/appcache/appcache_dispatcher_host.cc
@@ -11,11 +11,18 @@
#include "content/public/browser/user_metrics.h"
namespace content {
+namespace {
+const uint32 kFilteredMessageClasses[] = {
+ AppCacheMsgStart
+};
+} // namespace
AppCacheDispatcherHost::AppCacheDispatcherHost(
ChromeAppCacheService* appcache_service,
int process_id)
- : appcache_service_(appcache_service),
+ : BrowserMessageFilter(
+ kFilteredMessageClasses, arraysize(kFilteredMessageClasses)),
+ appcache_service_(appcache_service),
frontend_proxy_(this),
process_id_(process_id) {
}

Powered by Google App Engine
This is Rietveld 408576698