summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension.h
diff options
context:
space:
mode:
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-16 18:34:28 +0000
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-16 18:34:28 +0000
commit43919ac90f426c807da507d52c163972634c771e (patch)
tree29d4053f433b61e587fa532428cb3dc4b11823de /chrome/common/extensions/extension.h
parent29f192ded5a521a42ff1f93880e0787f2500d5a0 (diff)
downloadchromium_src-43919ac90f426c807da507d52c163972634c771e.zip
chromium_src-43919ac90f426c807da507d52c163972634c771e.tar.gz
chromium_src-43919ac90f426c807da507d52c163972634c771e.tar.bz2
Add concept of an options page to Extensions.
BUG=23801 TEST=Create an extension with an "options_page" entry in its manifest with a value the name of a html file in the extension dir. Load that extension and go to chrome://extensions, there should be an "Options" button that takes you to the page specified in the manifest. Review URL: http://codereview.chromium.org/271114 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29297 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension.h')
-rw-r--r--chrome/common/extensions/extension.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 0cb120b..c96ec0a 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -195,6 +195,7 @@ class Extension {
}
const std::vector<PluginInfo>& plugins() const { return plugins_; }
const GURL& background_url() const { return background_url_; }
+ const GURL& options_url() const { return options_url_; }
const std::vector<ToolstripInfo>& toolstrips() const { return toolstrips_; }
const std::vector<std::string>& api_permissions() const {
return api_permissions_;
@@ -334,6 +335,9 @@ class Extension {
// loaded in the background.
GURL background_url_;
+ // Optional URL to a page for setting options/preferences.
+ GURL options_url_;
+
// Optional list of toolstrips_ and associated properties.
std::vector<ToolstripInfo> toolstrips_;