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

Unified Diff: components/subresource_filter/core/common/flat/indexed_ruleset.fbs

Issue 2844293003: Factor out UrlPatternIndex from IndexedRuleset. (Closed)
Patch Set: Address final nits. Created 3 years, 7 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/flat/indexed_ruleset.fbs
diff --git a/components/subresource_filter/core/common/flat/indexed_ruleset.fbs b/components/subresource_filter/core/common/flat/indexed_ruleset.fbs
new file mode 100644
index 0000000000000000000000000000000000000000..91262283f095d79545c6c6c1fda5d06afa07e084
--- /dev/null
+++ b/components/subresource_filter/core/common/flat/indexed_ruleset.fbs
@@ -0,0 +1,22 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(pkalinnikov): Make including by absolute path work.
+include "url_pattern_index.fbs";
+
+namespace subresource_filter.flat;
+
+// The top-level data structure used to store URL rules.
+table IndexedRuleset {
+ // The index of all blacklist URL rules.
+ blacklist_index : UrlPatternIndex;
+
+ // The index of all whitelist URL rules, except pure deactivation rules.
+ whitelist_index : UrlPatternIndex;
+
+ // The index of all whitelist URL rules with activation options.
+ deactivation_index : UrlPatternIndex;
+}
+
+root_type IndexedRuleset;
« no previous file with comments | « components/subresource_filter/core/common/flat/BUILD.gn ('k') | components/subresource_filter/core/common/flat/rules.fbs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698