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

Unified Diff: components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h

Issue 2733833002: Change logic for recording redirect pattern histograms. (Closed)
Patch Set: fix ios Created 3 years, 9 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/browser/content_subresource_filter_driver_factory.h
diff --git a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
index ee1abdaf0b06ebf4ff0bd5f7da07a6ed953cf277..658f6261f5f8de0f72891ec88ec8093ec52d7dc3 100644
--- a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
+++ b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
@@ -152,11 +152,17 @@ class ContentSubresourceFilterDriverFactory
const content::Referrer& referrer,
ui::PageTransition page_transition);
- bool DidURLMatchCurrentActivationList(const GURL& url) const;
+ bool DidURLMatchActivationList(const GURL& url,
+ ActivationList activation_list) const;
void AddActivationListMatch(const GURL& url, ActivationList match_type);
+ int CalculateHitPatternForActivationList(
+ ActivationList activation_list) const;
void RecordRedirectChainMatchPattern() const;
+ void RecordRedirectChainMatchPatternForList(
+ ActivationList activation_list) const;
+
std::unique_ptr<SubresourceFilterClient> client_;
HostPathSet whitelisted_hosts_;

Powered by Google App Engine
This is Rietveld 408576698