summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension.h
diff options
context:
space:
mode:
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 ac6c671..2b2f775 100644
--- a/chrome/browser/extensions/extension.h
+++ b/chrome/browser/extensions/extension.h
@@ -30,6 +30,7 @@ class Extension {
static const wchar_t* kNameKey;
static const wchar_t* kDescriptionKey;
static const wchar_t* kContentScriptsKey;
+ static const wchar_t* kVersionKey;
// Error messages returned from InitFromValue().
static const char* kInvalidFormatVersionError;
@@ -39,6 +40,7 @@ class Extension {
static const char* kInvalidDescriptionError;
static const char* kInvalidContentScriptsListError;
static const char* kInvalidContentScriptError;
+ static const char* kInvalidVersionError;
// The path to the folder the extension is stored in.
const FilePath& path() const { return path_; }
@@ -51,6 +53,9 @@ class Extension {
// previous version's update key.
const std::string& id() const { return id_; }
+ // The version number for the extension.
+ const std::string& version() const { return version_; }
+
// A human-readable name of the extension.
const std::string& name() const { return name_; }
@@ -75,6 +80,9 @@ class Extension {
// The extension's ID.
std::string id_;
+ // The extension's version.
+ std::string version_;
+
// The extension's human-readable name.
std::string name_;