diff options
author | mad@google.com <mad@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-18 19:32:33 +0000 |
---|---|---|
committer | mad@google.com <mad@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-18 19:32:33 +0000 |
commit | 8e6a12a2dcf906c6153f73af99b1dcfa0d65ba71 (patch) | |
tree | 6aead25ffc6a2526bb7c32b7a21ddbd8226c11de /chrome/common/extensions/user_script.h | |
parent | 77148a8429579009f0eb74f5b57af5c42a8374cf (diff) | |
download | chromium_src-8e6a12a2dcf906c6153f73af99b1dcfa0d65ba71.zip chromium_src-8e6a12a2dcf906c6153f73af99b1dcfa0d65ba71.tar.gz chromium_src-8e6a12a2dcf906c6153f73af99b1dcfa0d65ba71.tar.bz2 |
Small cleanup of constness.
Added const to methods not changing the state, except for the lazy setting of an escaped version of a path which is now mutable.
Also made some lint fixes.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/132024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18733 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/user_script.h')
-rw-r--r-- | chrome/common/extensions/user_script.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/extensions/user_script.h b/chrome/common/extensions/user_script.h index 070ead3..57f8515 100644 --- a/chrome/common/extensions/user_script.h +++ b/chrome/common/extensions/user_script.h @@ -114,11 +114,11 @@ class UserScript { const std::string& extension_id() const { return extension_id_; } void set_extension_id(const std::string& id) { extension_id_ = id; } - bool is_standalone() { return extension_id_.empty(); } + bool is_standalone() const { return extension_id_.empty(); } // Returns true if the script should be applied to the specified URL, false // otherwise. - bool MatchesUrl(const GURL& url); + bool MatchesUrl(const GURL& url) const; // Serialize the UserScript into a pickle. The content of the scripts and // paths to UserScript::Files will not be serialized! |