Index: extensions/common/url_pattern.h |
diff --git a/extensions/common/url_pattern.h b/extensions/common/url_pattern.h |
index 5a0e8c6ffd32608ffda548e68b071bfddecba6ad..538d7797ed3e61998313ab84cd1d5489e799a03d 100644 |
--- a/extensions/common/url_pattern.h |
+++ b/extensions/common/url_pattern.h |
@@ -162,6 +162,12 @@ class URLPattern { |
// cached. |
bool ImpliesAllHosts() const; |
+ // Returns true if the pattern only matches a single origin. |
+ bool IsOrigin() const; |
not at google - send to devlin
2014/08/13 22:59:17
I'm silly. IsOrigin() is wrong, MatchesSingleOrigi
gpdavis
2014/08/13 23:23:06
Done.
|
+ |
+ // Returns the pattern's origin as a GURL. |
+ GURL ToOrigin() const; |
+ |
// Sets the port. Returns false if the port is invalid. |
bool SetPort(const std::string& port); |
const std::string& port() const { return port_; } |