summaryrefslogtreecommitdiffstats
path: root/extensions/common/url_pattern.h
diff options
context:
space:
mode:
authorgpdavis.chromium@gmail.com <gpdavis.chromium@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-15 23:05:41 +0000
committergpdavis.chromium@gmail.com <gpdavis.chromium@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-15 23:06:47 +0000
commite1670584cb59505582f455923b2c476ffb49ec6b (patch)
treee04f14b1a6264d48534d4c62ee89e88b8f1f258e /extensions/common/url_pattern.h
parent8faaaa1db317847005281e04eaa3a44909a4f097 (diff)
downloadchromium_src-e1670584cb59505582f455923b2c476ffb49ec6b.zip
chromium_src-e1670584cb59505582f455923b2c476ffb49ec6b.tar.gz
chromium_src-e1670584cb59505582f455923b2c476ffb49ec6b.tar.bz2
Support "always allow" for runtime script execution
BUG=391922 Review URL: https://codereview.chromium.org/396033002 Cr-Commit-Position: refs/heads/master@{#290039} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290039 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/url_pattern.h')
-rw-r--r--extensions/common/url_pattern.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/common/url_pattern.h b/extensions/common/url_pattern.h
index 5a0e8c6..c58c3ef 100644
--- a/extensions/common/url_pattern.h
+++ b/extensions/common/url_pattern.h
@@ -162,6 +162,10 @@ class URLPattern {
// cached.
bool ImpliesAllHosts() const;
+ // Returns true if the pattern only matches a single origin. The pattern may
+ // include a path.
+ bool MatchesSingleOrigin() const;
+
// Sets the port. Returns false if the port is invalid.
bool SetPort(const std::string& port);
const std::string& port() const { return port_; }