Index: chrome/common/extensions/extension_file_util.h |
diff --git a/chrome/common/extensions/extension_file_util.h b/chrome/common/extensions/extension_file_util.h |
index ce60673dd4a13e16941707abcdf3d46ac0b65637..c1241f17555c84f4980a9e06c3f0fcd77cc0d24c 100644 |
--- a/chrome/common/extensions/extension_file_util.h |
+++ b/chrome/common/extensions/extension_file_util.h |
@@ -16,6 +16,9 @@ class Extension; |
class ExtensionMessageBundle; |
class FilePath; |
class GURL; |
+namespace base { |
+class DictionaryValue; |
+} |
// Utilties for manipulating the on-disk storage of extensions. |
namespace extension_file_util { |
@@ -43,6 +46,11 @@ scoped_refptr<Extension> LoadExtension(const FilePath& extension_root, |
int flags, |
std::string* error); |
+// Loads an extension manifest from the specified directory. Returns NULL |
+// on failure, with a description of the error in |error|. |
+base::DictionaryValue* LoadManifest(const FilePath& extension_root, |
+ std::string* error); |
+ |
// Returns true if the given extension object is valid and consistent. |
// Otherwise, a description of the error is returned in |error|. |
bool ValidateExtension(const Extension* extension, std::string* error); |