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

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

Issue 270153004: Introduce ActiveScriptController; track active extension scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/feature_switch.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 ee1715df6c97f0e091bba99af83ea4119da08675..f4f8bce4c223325294b9d0b7e28be05a01836d2e 100644
--- a/extensions/common/permissions/permissions_data.h
+++ b/extensions/common/permissions/permissions_data.h
@@ -177,6 +177,10 @@ class PermissionsData {
int tab_id,
std::string* error);
+ // Returns true if the user should be alerted that the |extension| is running
+ // a script.
+ static bool RequiresActionForScriptExecution(const Extension* extension);
+
// 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/feature_switch.cc ('k') | extensions/common/permissions/permissions_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698