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

Unified Diff: components/subresource_filter/content/renderer/document_subresource_filter.h

Issue 2161963002: Add some initial histograms about subresource filtering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sbsf_dsf
Patch Set: Rebase. Created 4 years, 5 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: components/subresource_filter/content/renderer/document_subresource_filter.h
diff --git a/components/subresource_filter/content/renderer/document_subresource_filter.h b/components/subresource_filter/content/renderer/document_subresource_filter.h
index c7c1d4ec49d86afb4c4e921739eb0070cfb94994..6be1787786c8645dbae5f13f0be050a3e22681ca 100644
--- a/components/subresource_filter/content/renderer/document_subresource_filter.h
+++ b/components/subresource_filter/content/renderer/document_subresource_filter.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/weak_ptr.h"
#include "components/subresource_filter/core/common/activation_state.h"
#include "third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h"
@@ -27,7 +28,9 @@ class MemoryMappedRuleset;
// subresource loads from URL paths having this string as a suffix if it is
// non-empty. This enables exercising the feature end-to-end in a browsertest.
// Replace this with the actual filtering logic.
-class DocumentSubresourceFilter : public blink::WebDocumentSubresourceFilter {
+class DocumentSubresourceFilter
+ : public blink::WebDocumentSubresourceFilter,
+ public base::SupportsWeakPtr<DocumentSubresourceFilter> {
public:
// Constructs a new filter that will:
// -- Operate at the prescribed |activation_state|, which must be either

Powered by Google App Engine
This is Rietveld 408576698