diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-22 05:20:25 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-22 05:20:25 +0000 |
commit | abae38bb08836ff5dc74b4abb76581577a001e99 (patch) | |
tree | 6c4713fdaea422c979ce3f59d4bc0b23df8c7a4d /chrome/common/extensions | |
parent | d2d3647d4f46d4b5ab367eb89f9c65e3af9021a0 (diff) | |
download | chromium_src-abae38bb08836ff5dc74b4abb76581577a001e99.zip chromium_src-abae38bb08836ff5dc74b4abb76581577a001e99.tar.gz chromium_src-abae38bb08836ff5dc74b4abb76581577a001e99.tar.bz2 |
Honor @version field when converting greasemonkey scripts to
extensions.
BUG=30760
Review URL: http://codereview.chromium.org/2829011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50430 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions')
-rw-r--r-- | chrome/common/extensions/user_script.h | 9 |
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_; |