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

Unified Diff: extensions/common/file_util.h

Issue 2881453002: DNR Prototype: With flatbuffers
Patch Set: -- Created 3 years, 6 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 | « extensions/common/constants.cc ('k') | extensions/common/file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/file_util.h
diff --git a/extensions/common/file_util.h b/extensions/common/file_util.h
index 6678163c92cd245f8e09f14bfadcd86e1efd5617..3cfdf1bc601d3edf5bbaa691d4498eb48f3eea07 100644
--- a/extensions/common/file_util.h
+++ b/extensions/common/file_util.h
@@ -71,6 +71,10 @@ std::unique_ptr<base::DictionaryValue> LoadManifest(
const base::FilePath::CharType* manifest_filename,
std::string* error);
+bool IndexAndPersistRulesetIfNeeded(const Extension* extension,
+ const base::FilePath& indexed_ruleset_path,
+ std::string* error);
+
// Returns true if the given extension object is valid and consistent.
// May also append a series of warning messages to |warnings|, but they
// should not prevent the extension from running.
@@ -151,6 +155,9 @@ MessageBundle::SubstitutionMap* LoadMessageBundleSubstitutionMapFromPaths(
base::FilePath GetVerifiedContentsPath(const base::FilePath& extension_path);
base::FilePath GetComputedHashesPath(const base::FilePath& extension_path);
+// Helper function to get path where the indexed ruleset file used for the
+// Declarative Net Request API is stored.
+base::FilePath GetIndexedRulesetPath(const base::FilePath& extension_path);
} // namespace file_util
} // namespace extensions
« no previous file with comments | « extensions/common/constants.cc ('k') | extensions/common/file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698