summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions')
-rw-r--r--chrome/common/extensions/user_script.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/common/extensions/user_script.h b/chrome/common/extensions/user_script.h
index ed84009..6bf30ee 100644
--- a/chrome/common/extensions/user_script.h
+++ b/chrome/common/extensions/user_script.h
@@ -113,6 +113,11 @@ class UserScript {
const std::string& name() const { return name_; }
void set_name(const std::string& name) { name_ = name; }
+ const std::string& version() const { return version_; }
+ void set_version(const std::string& version) {
+ version_ = version;
+ }
+
const std::string& description() const { return description_; }
void set_description(const std::string& description) {
description_ = description;
@@ -194,6 +199,10 @@ class UserScript {
// A longer description. Only used when parsing Greasemonkey-style scripts.
std::string description_;
+ // A version number of the script. Only used when parsing Greasemonkey-style
+ // scripts.
+ std::string version_;
+
// Greasemonkey-style globs that determine pages to inject the script into.
// These are only used with standalone scripts.
std::vector<std::string> globs_;