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

Unified Diff: extensions/common/file_util.h

Issue 229813002: Move extensions manifest IconsHandler to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: skia include (icons-handler) Created 6 years, 8 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: 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

Powered by Google App Engine
This is Rietveld 408576698