Index: extensions/common/permissions/permissions_data.h |
=================================================================== |
--- extensions/common/permissions/permissions_data.h (revision 287393) |
+++ extensions/common/permissions/permissions_data.h (working copy) |
@@ -68,6 +68,14 @@ |
// 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 IsRestrictedUrl(const GURL& document_url, |
+ const GURL& top_frame_url, |
+ const Extension* extension, |
+ std::string* error); |
+ |
// Sets the runtime permissions of the given |extension| to |permissions|. |
void SetActivePermissions(const PermissionSet* active) const; |