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

Unified Diff: components/subresource_filter/core/common/indexed_ruleset.h

Issue 2175763002: Integrate IndexedRuleset into DocumentSubresourceFilter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. 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/core/common/indexed_ruleset.h
diff --git a/components/subresource_filter/core/common/indexed_ruleset.h b/components/subresource_filter/core/common/indexed_ruleset.h
index fec6c0c2c4489c1ab89ba91237c2ec895395d6f1..cb04c5af7fdaf209340efadc64d3000e4366b528 100644
--- a/components/subresource_filter/core/common/indexed_ruleset.h
+++ b/components/subresource_filter/core/common/indexed_ruleset.h
@@ -110,9 +110,8 @@ class IndexedRulesetMatcher {
IndexedRulesetMatcher(const uint8_t* buffer, size_t size);
// Returns whether the network request to |url| of |element_type| initiated by
- // |initiator| is allowed to proceed.
- // |element_type| == ELEMENT_TYPE_UNSPECIFIED denotes an unknown or irrelevant
- // type.
+ // |initiator| is allowed to proceed. Always returns true, if the |url| is not
+ // valid or |element_type| == ELEMENT_TYPE_UNSPECIFIED.
bool IsAllowed(const GURL& url,
const url::Origin& initiator,
proto::ElementType element_type) const;
« no previous file with comments | « components/subresource_filter/core/common/BUILD.gn ('k') | components/subresource_filter/core/common/indexed_ruleset.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698