A small start: add icons to the extension manifest.
Review URL: http://codereview.chromium.org/155662
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20941 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 8add980..32fc403c 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -45,6 +45,9 @@
NEW_INSTALL
};
+ // Icon sizes used by the extension system.
+ static const int kKnownIconSizes[];
+
// An NPAPI plugin included in the extension.
struct PluginInfo {
FilePath path; // Path to the plugin.
@@ -147,6 +150,7 @@
const std::vector<std::string>& toolstrips() const { return toolstrips_; }
const std::vector<URLPattern>& permissions() const { return permissions_; }
const GURL& update_url() const { return update_url_; }
+ const std::map<int, std::string>& icons() { return icons_; }
// Retrieves a page action by |id|.
const PageAction* GetPageAction(std::string id) const;
@@ -258,6 +262,9 @@
// The sites this extension has permission to talk to (using XHR, etc).
std::vector<URLPattern> permissions_;
+ // The paths to the icons the extension contains mapped by their width.
+ std::map<int, std::string> icons_;
+
// URL for fetching an update manifest
GURL update_url_;