Index: chrome/common/extensions/url_pattern.h |
diff --git a/chrome/common/extensions/url_pattern.h b/chrome/common/extensions/url_pattern.h |
index c357b2d281f618d35f00f7ffaca00de9db0ead78..b9d039d9d3a4638b9b3206e640e93e752edf8b94 100644 |
--- a/chrome/common/extensions/url_pattern.h |
+++ b/chrome/common/extensions/url_pattern.h |
@@ -191,6 +191,9 @@ class URLPattern { |
// Returns true if this instance matches the specified URL. |
bool MatchesURL(const GURL& test) const; |
+ // Returns true if this instance matches the specified security origin. |
+ bool MatchesSecurityOrigin(const GURL& test) const; |
+ |
// Returns true if |test| matches our scheme. |
bool MatchesScheme(const std::string& test) const; |
@@ -243,6 +246,8 @@ class URLPattern { |
// Returns true if any of the |schemes| items matches our scheme. |
bool MatchesAnyScheme(const std::vector<std::string>& schemes) const; |
+ bool MatchesSecurityOriginHelper(const GURL& test) const; |
+ |
// If the URLPattern contains a wildcard scheme, returns a list of |
// equivalent literal schemes, otherwise returns the current scheme. |
std::vector<std::string> GetExplicitSchemes() const; |