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

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

Issue 2645283007: Add the client for accessing Subresource Filter only list. (Closed)
Patch Set: adressed comments from jwd 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..56a1aa90a089430bf04e56ad19a81a22750e0911 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,9 +152,12 @@ class ContentSubresourceFilterDriverFactory
const content::Referrer& referrer,
ui::PageTransition page_transition);
- bool DidURLMatchCurrentActivationList(const GURL& url) const;
+ bool DidURLMatchActivationList(const GURL& url,
+ ActivationList match_type) const;
void AddActivationListMatch(const GURL& url, ActivationList match_type);
+ int CalculateHitPatternForActivationList(
+ ActivationList activation_list) const;
void RecordRedirectChainMatchPattern() const;
std::unique_ptr<SubresourceFilterClient> client_;
@@ -174,6 +177,8 @@ class ContentSubresourceFilterDriverFactory
// current page.
DocumentLoadStatistics aggregated_document_statistics_;
+ bool subresource_filter_only_hit_;
+
DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory);
};

Powered by Google App Engine
This is Rietveld 408576698