diff options
author | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-13 03:51:35 +0000 |
---|---|---|
committer | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-13 03:51:35 +0000 |
commit | ee77a52baa1f8a98d15f9749996f90e9d3200f2d (patch) | |
tree | af5f18ea9b773d64cb748aed642ca93282652815 /extensions | |
parent | b8491b064cb05e56e16f907dec3dd6878d29b053 (diff) | |
download | chromium_src-ee77a52baa1f8a98d15f9749996f90e9d3200f2d.zip chromium_src-ee77a52baa1f8a98d15f9749996f90e9d3200f2d.tar.gz chromium_src-ee77a52baa1f8a98d15f9749996f90e9d3200f2d.tar.bz2 |
Refactor PermissionsData to pull out the check for scripting the webstore.
Move that to ExtensionsClient::IsScriptableURL.
BUG=298586
Review URL: https://codereview.chromium.org/58853013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234736 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/common/extensions_client.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/common/extensions_client.h b/extensions/common/extensions_client.h index 71a4dfd..594e75b 100644 --- a/extensions/common/extensions_client.h +++ b/extensions/common/extensions_client.h @@ -9,6 +9,8 @@ #include <string> #include <vector> +class GURL; + namespace extensions { class APIPermissionSet; @@ -63,6 +65,9 @@ class ExtensionsClient { const Extension* extension, const APIPermissionSet& api_permissions) const = 0; + // Returns false if content scripts are forbidden from running on |url|. + virtual bool IsScriptableURL(const GURL& url, std::string* error) const = 0; + // Return the extensions client. static ExtensionsClient* Get(); |