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

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: Kalman's 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
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..5c0652c5bb7c2ea6eeb660f784881fb03beadfc5 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 to the fact that the given
+ // |extension| is running a script.
not at google - send to devlin 2014/05/08 20:47:09 shorter: Returns true if the user should be alerte
Devlin 2014/05/08 23:01:00 Yay for 20 characters less!
not at google - send to devlin 2014/05/08 23:33:19 Think of all the people that have to read 20 fewer
+ static bool RequiresActionForScriptExecution(const Extension* extension);
+
// Parse the permissions of a given extension in the initialization process.
bool ParsePermissions(Extension* extension, base::string16* error);

Powered by Google App Engine
This is Rietveld 408576698