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 |