diff options
author | rdevlin.cronin@chromium.org <rdevlin.cronin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-27 17:14:50 +0000 |
---|---|---|
committer | rdevlin.cronin@chromium.org <rdevlin.cronin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-27 17:14:50 +0000 |
commit | 684a212a93141908bcc10f4bc57f3edb53d2d21f (patch) | |
tree | e12d381daf0f763f76f6e16bb11c05a92ff6d71b /extensions/common/url_pattern.h | |
parent | bbed7dc56b4afa044a3b14804aa9f82fb0c250ce (diff) | |
download | chromium_src-684a212a93141908bcc10f4bc57f3edb53d2d21f.zip chromium_src-684a212a93141908bcc10f4bc57f3edb53d2d21f.tar.gz chromium_src-684a212a93141908bcc10f4bc57f3edb53d2d21f.tar.bz2 |
Have the Debugger extension api check that it has access to the tab
Check PermissionsData::CanAccessTab() prior to attaching the debugger.
BUG=367567
Review URL: https://codereview.chromium.org/352523003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280354 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/url_pattern.h')
-rw-r--r-- | extensions/common/url_pattern.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/common/url_pattern.h b/extensions/common/url_pattern.h index 70109db..b4c566b 100644 --- a/extensions/common/url_pattern.h +++ b/extensions/common/url_pattern.h @@ -78,6 +78,9 @@ class URLPattern { // The <all_urls> string pattern. static const char kAllUrlsPattern[]; + // Returns true if the given |scheme| is considered valid for extensions. + static bool IsValidSchemeForExtensions(const std::string& scheme); + explicit URLPattern(int valid_schemes); // Convenience to construct a URLPattern from a string. If the string is not |