Index: extensions/common/file_util.h |
diff --git a/extensions/common/file_util.h b/extensions/common/file_util.h |
index 3ec7adec5b7ae186889e762e386e3b6658f41bf8..5a605ec5b27f2e5eca18aafc250eb79d60297866 100644 |
--- a/extensions/common/file_util.h |
+++ b/extensions/common/file_util.h |
@@ -5,6 +5,9 @@ |
#ifndef EXTENSIONS_COMMON_FILE_UTIL_H_ |
#define EXTENSIONS_COMMON_FILE_UTIL_H_ |
+#include <string> |
+ |
+class ExtensionIconSet; |
class GURL; |
namespace base { |
@@ -12,6 +15,8 @@ class FilePath; |
} |
namespace extensions { |
+class Extension; |
+ |
namespace file_util { |
// Get a relative file path from a chrome-extension:// URL. |
@@ -22,6 +27,13 @@ base::FilePath ExtensionURLToRelativeFilePath(const GURL& url); |
base::FilePath ExtensionResourceURLToFilePath(const GURL& url, |
const base::FilePath& root); |
+// Returns true if the icons in the icon set exist. Oherwise, populates |
+// |error| with the |error_message_id| for an invalid file. |
+bool ValidateExtensionIconSet(const ExtensionIconSet& icon_set, |
+ const Extension* extension, |
+ int error_message_id, |
+ std::string* error); |
+ |
} // namespace file_util |
} // namespace extensions |