Chromium Code Reviews| Index: extensions/common/permissions/permissions_data.h |
| diff --git a/extensions/common/permissions/permissions_data.h b/extensions/common/permissions/permissions_data.h |
| index a23fb2b56d173897cf5f71858cbbdde8b887d6e3..68e5ce5563d73909bf97f0f8a97ad275304ea223 100644 |
| --- a/extensions/common/permissions/permissions_data.h |
| +++ b/extensions/common/permissions/permissions_data.h |
| @@ -68,6 +68,14 @@ class PermissionsData { |
| // whitelist of extensions that can script all pages. |
| static bool CanExecuteScriptEverywhere(const Extension* extension); |
| + // Returns true if the given |url| is restricted for the given |extension|, |
| + // as is commonly the case for chrome:// urls. |
| + // NOTE: You probably want to use CanAccessPage(). |
| + static bool UrlIsRestricted(const GURL& document_url, |
|
not at google - send to devlin
2014/06/25 20:42:17
please call this IsRestrictedURL, or IsRestrictedU
Devlin
2014/06/25 23:30:00
Done.
|
| + const GURL& top_frame_url, |
| + const Extension* extension, |
| + std::string* error); |
|
not at google - send to devlin
2014/06/25 20:42:17
it would also be nice to test this function (compl
Devlin
2014/06/25 23:30:00
Done.
|
| + |
| // Sets the runtime permissions of the given |extension| to |permissions|. |
| void SetActivePermissions(const PermissionSet* active) const; |