diff options
author | jstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-13 15:03:47 +0000 |
---|---|---|
committer | jstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-13 15:03:47 +0000 |
commit | 06e8b8ff0c9313a90243012961601ab63e89de1e (patch) | |
tree | 551c4198944f30c223acd905a0ba5874ff6f810f /chrome/common/extensions/extension.h | |
parent | 613ccd6ad9e76e63dd76a579ed3a6b04fb13025b (diff) | |
download | chromium_src-06e8b8ff0c9313a90243012961601ab63e89de1e.zip chromium_src-06e8b8ff0c9313a90243012961601ab63e89de1e.tar.gz chromium_src-06e8b8ff0c9313a90243012961601ab63e89de1e.tar.bz2 |
Update URLPatternSet to contain a std::set instead of std::vector.
This updates URLPatternSet to contain a std::set instead of a std::vector, making it easier to implement the set operations in ExtensionPermissionSet.
BUG=84507
TEST=unit_tests
Review URL: http://codereview.chromium.org/7347011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92364 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension.h')
-rw-r--r-- | chrome/common/extensions/extension.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h index 517ebdb..dcbcedc 100644 --- a/chrome/common/extensions/extension.h +++ b/chrome/common/extensions/extension.h @@ -544,22 +544,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> { // sure the drive letter is uppercase. static FilePath MaybeNormalizePath(const FilePath& path); - // Returns the distinct hosts that can be displayed in the install UI or be - // used for privilege comparisons. This discards some of the detail that is - // present in the manifest to make it as easy as possible to process by users. - // In particular we disregard the scheme and path components of URLPatterns - // and de-dupe the result, which includes filtering out common hosts with - // differing RCDs. If |include_rcd| is true, then the de-duped result - // will be the first full entry, including its RCD. So if the list was - // "*.google.co.uk" and "*.google.com", the returned value would just be - // "*.google.co.uk". Keeping the RCD in the result is useful for display - // purposes when you want to show the user one sample hostname from the list. - // If you need to compare two URLPatternLists for security equality, then set - // |include_rcd| to false, which will return a result like "*.google.", - // regardless of the order of the patterns. - static std::vector<std::string> GetDistinctHosts( - const URLPatternList& host_patterns, bool include_rcd); - // Returns true if this extension id is from a trusted provider. static bool IsTrustedId(const std::string& id); |