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

Unified Diff: content/browser/loader/resource_scheduler_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: Rebase 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/loader/resource_scheduler_filter.cc
diff --git a/content/browser/loader/resource_scheduler_filter.cc b/content/browser/loader/resource_scheduler_filter.cc
index 2cf32e6e89f5dad9cd0d2f7c09598063f63a23b8..97e219e91bcbace3954086a7db630be342ce12e1 100644
--- a/content/browser/loader/resource_scheduler_filter.cc
+++ b/content/browser/loader/resource_scheduler_filter.cc
@@ -11,9 +11,17 @@
#include "content/public/common/page_transition_types.h"
namespace content {
+namespace {
+const uint32 kFilteredMessageClasses[] = {
+ FrameMsgStart,
+ ViewMsgStart,
+};
+} // namespace
ResourceSchedulerFilter::ResourceSchedulerFilter(int child_id)
- : child_id_(child_id) {
+ : BrowserMessageFilter(
+ kFilteredMessageClasses, arraysize(kFilteredMessageClasses)),
+ child_id_(child_id) {
}
ResourceSchedulerFilter::~ResourceSchedulerFilter() {
« no previous file with comments | « content/browser/loader/resource_message_filter.cc ('k') | content/browser/media/android/browser_demuxer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698