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

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

Issue 2683413003: Introduce AsyncDocumentSubresourceFilter. (Closed)
Patch Set: Rebase. Created 3 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
« no previous file with comments | « components/subresource_filter/content/browser/verified_ruleset_dealer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/subresource_filter/core/common/indexed_ruleset.cc
diff --git a/components/subresource_filter/core/common/indexed_ruleset.cc b/components/subresource_filter/core/common/indexed_ruleset.cc
index 75ac71767ddad07faa5e441b0157fb824304d306..b5455cc368ffbf4ce6bfb291c09ccc36dd4e1e1a 100644
--- a/components/subresource_filter/core/common/indexed_ruleset.cc
+++ b/components/subresource_filter/core/common/indexed_ruleset.cc
@@ -470,10 +470,10 @@ bool IsMatch(const flat::UrlPatternIndex* index,
} // namespace
+// static
bool IndexedRulesetMatcher::Verify(const uint8_t* buffer, size_t size) {
- const auto* indexed_ruleset = flat::GetIndexedRuleset(buffer);
flatbuffers::Verifier verifier(buffer, size);
- return indexed_ruleset->Verify(verifier);
+ return flat::VerifyIndexedRulesetBuffer(verifier);
}
IndexedRulesetMatcher::IndexedRulesetMatcher(const uint8_t* buffer, size_t size)
« no previous file with comments | « components/subresource_filter/content/browser/verified_ruleset_dealer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698