summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension.h
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-29 22:24:31 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-29 22:24:31 +0000
commitc64631651a4267994dbdd336243e06b64e4e7a5f (patch)
tree23700eae496a6cf3cda0beea3742f12656c8cd4b /chrome/browser/extensions/extension.h
parent45671618a6690a8501f01905a4ed6d19cfcdc0b1 (diff)
downloadchromium_src-c64631651a4267994dbdd336243e06b64e4e7a5f.zip
chromium_src-c64631651a4267994dbdd336243e06b64e4e7a5f.tar.gz
chromium_src-c64631651a4267994dbdd336243e06b64e4e7a5f.tar.bz2
Refactor ExtensionView to support a UI-less extension instance.
- Introduce ExtensionHost, which is the guy that talks to the RenderViewHost. - ExtensionView holds an ExtensionHost, and also renders its contents in an HWND. - Added code to load a page optionally specified in the manifest as a background process whenever it exists. Review URL: http://codereview.chromium.org/92043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension.h')
-rw-r--r--chrome/browser/extensions/extension.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension.h b/chrome/browser/extensions/extension.h
index 2f59115..95f04bb 100644
--- a/chrome/browser/extensions/extension.h
+++ b/chrome/browser/extensions/extension.h
@@ -38,6 +38,7 @@ class Extension {
static const wchar_t* kNameKey;
static const wchar_t* kPermissionsKey;
static const wchar_t* kPluginsDirKey;
+ static const wchar_t* kBackgroundKey;
static const wchar_t* kRunAtKey;
static const wchar_t* kThemeKey;
static const wchar_t* kToolstripsKey;
@@ -63,6 +64,7 @@ class Extension {
static const char* kInvalidMatchesError;
static const char* kInvalidNameError;
static const char* kInvalidPluginsDirError;
+ static const char* kInvalidBackgroundError;
static const char* kInvalidRunAtError;
static const char* kInvalidToolstripError;
static const char* kInvalidToolstripsError;
@@ -122,6 +124,7 @@ class Extension {
const std::string& description() const { return description_; }
const UserScriptList& content_scripts() const { return content_scripts_; }
const FilePath& plugins_dir() const { return plugins_dir_; }
+ const GURL& background_url() const { return background_url_; }
const std::vector<std::string>& toolstrips() const { return toolstrips_; }
const std::vector<URLPattern>& permissions() const {
return permissions_; }
@@ -163,6 +166,10 @@ class Extension {
// contains.
FilePath plugins_dir_;
+ // Optional URL to a master page of which a single instance should be always
+ // loaded in the background.
+ GURL background_url_;
+
// Paths to HTML files to be displayed in the toolbar.
std::vector<std::string> toolstrips_;
@@ -174,6 +181,7 @@ class Extension {
// A map of resource id's to relative file paths.
std::map<const std::wstring, std::string> theme_paths_;
+ // The sites this extension has permission to talk to (using XHR, etc).
std::vector<URLPattern> permissions_;
// We implement copy, but not assign.