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-02-21 01:44:30 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-21 01:44:30 +0000
commit367230c507ce20ff3b42013d0a3eac4ee01efb88 (patch)
treeb217eb19f3c5f662debd5fb562b028d427c3ae19 /chrome/browser/extensions/extension.h
parent52fadc8176f4076cc021c15d9ccc022e17fd8e97 (diff)
downloadchromium_src-367230c507ce20ff3b42013d0a3eac4ee01efb88.zip
chromium_src-367230c507ce20ff3b42013d0a3eac4ee01efb88.tar.gz
chromium_src-367230c507ce20ff3b42013d0a3eac4ee01efb88.tar.bz2
Add NPAPI plugins contained in extensions to the PluginList.
Review URL: http://codereview.chromium.org/20521 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10139 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension.h')
-rw-r--r--chrome/browser/extensions/extension.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension.h b/chrome/browser/extensions/extension.h
index eae110c..cc44cd5 100644
--- a/chrome/browser/extensions/extension.h
+++ b/chrome/browser/extensions/extension.h
@@ -47,6 +47,7 @@ class Extension {
static const wchar_t* kRunAtKey;
static const wchar_t* kVersionKey;
static const wchar_t* kZipHashKey;
+ static const wchar_t* kPluginsDirKey;
// Some values expected in manifests.
static const char* kRunAtDocumentStartValue;
@@ -69,6 +70,7 @@ class Extension {
static const char* kInvalidRunAtError;
static const char* kInvalidVersionError;
static const char* kInvalidZipHashError;
+ static const char* kInvalidPluginsDirError;
// Creates an absolute url to a resource inside an extension. The
// |extension_url| argument should be the url() from an Extension object. The
@@ -117,6 +119,11 @@ class Extension {
return content_scripts_;
}
+ // Path to the directory of NPAPI plugins that the extension contains.
+ const FilePath& plugins_dir() const {
+ return plugins_dir_;
+ }
+
// Initialize the extension from a parsed manifest.
bool InitFromValue(const DictionaryValue& value, std::string* error);
@@ -142,6 +149,9 @@ class Extension {
// Paths to the content scripts the extension contains.
UserScriptList content_scripts_;
+ // Path to the directory of NPAPI plugins that the extension contains.
+ FilePath plugins_dir_;
+
// A SHA1 hash of the contents of the zip file. Note that this key is only
// present in the manifest that's prepended to the zip. The inner manifest
// will not have this key.