Index: extensions/common/url_pattern.h |
diff --git a/extensions/common/url_pattern.h b/extensions/common/url_pattern.h |
index b4c566bf5c316a46ea060425c9cb476574e1c8e5..6aeb536604c366d9555cade283099a7db7aea581 100644 |
--- a/extensions/common/url_pattern.h |
+++ b/extensions/common/url_pattern.h |
@@ -153,6 +153,11 @@ class URLPattern { |
// Returns true if |test| matches our path. |
bool MatchesPath(const std::string& test) const; |
+ // Returns true if the pattern is vague enough that it implies all hosts, |
+ // such as *://*/*. |
+ // This is an expensive method, and should be used sparingly! |
not at google - send to devlin
2014/06/27 23:24:34
it's cached somewhere right? could you call that p
Devlin
2014/06/30 17:06:11
Done.
|
+ bool ImpliesAllHosts() const; |
+ |
// Sets the port. Returns false if the port is invalid. |
bool SetPort(const std::string& port); |
const std::string& port() const { return port_; } |