Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Unified Diff: extensions/common/permissions/permissions_data.h

Issue 293003008: Make ActiveScriptController use Active Tab-style permissions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest master for CQ Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/permissions/permission_set.cc ('k') | extensions/common/permissions/permissions_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/permissions/permissions_data.h
diff --git a/extensions/common/permissions/permissions_data.h b/extensions/common/permissions/permissions_data.h
index f4f8bce4c223325294b9d0b7e28be05a01836d2e..f47b128338b48cf7afab15d59ff8b89062e743a8 100644
--- a/extensions/common/permissions/permissions_data.h
+++ b/extensions/common/permissions/permissions_data.h
@@ -135,6 +135,11 @@ class PermissionsData {
// network, etc.)
static bool HasEffectiveAccessToAllHosts(const Extension* extension);
+ // Whether the extension has access to so many hosts that we should treat it
+ // as "all_hosts" for warning purposes.
+ // For example, '*://*.com/*'.
+ static bool ShouldWarnAllHosts(const Extension* extension);
+
// Returns the full list of permission messages that the given |extension|
// should display at install time.
static PermissionMessages GetPermissionMessages(const Extension* extension);
@@ -179,7 +184,9 @@ class PermissionsData {
// Returns true if the user should be alerted that the |extension| is running
// a script.
- static bool RequiresActionForScriptExecution(const Extension* extension);
+ static bool RequiresActionForScriptExecution(const Extension* extension,
+ int tab_id,
+ const GURL& url);
// Parse the permissions of a given extension in the initialization process.
bool ParsePermissions(Extension* extension, base::string16* error);
« no previous file with comments | « extensions/common/permissions/permission_set.cc ('k') | extensions/common/permissions/permissions_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698