Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2079)

Unified Diff: chrome/common/extensions/url_pattern.h

Issue 8312005: Ignore paths when matching patterns for extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix silly typo. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..a16f2951be3363b88af2913ad465e89d962207d6 100644
--- a/chrome/common/extensions/url_pattern.h
+++ b/chrome/common/extensions/url_pattern.h
@@ -191,6 +191,8 @@ class URLPattern {
// Returns true if this instance matches the specified URL.
bool MatchesURL(const GURL& test) const;
+ bool MatchesSecurityOrigin(const GURL& test) const;
Aaron Boodman 2011/10/31 23:57:11 comment?
dcheng 2011/11/01 22:04:04 Done.
+
// Returns true if |test| matches our scheme.
bool MatchesScheme(const std::string& test) const;
@@ -243,6 +245,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;

Powered by Google App Engine
This is Rietveld 408576698