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

Unified Diff: chrome/browser/extensions/active_script_controller.h

Issue 396033002: Support "always allow" for runtime script execution (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: String param reference Created 6 years, 4 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: chrome/browser/extensions/active_script_controller.h
diff --git a/chrome/browser/extensions/active_script_controller.h b/chrome/browser/extensions/active_script_controller.h
index 21e068dcf04945e257ab0bd013ac2c22ca0606fc..895c8c4a27a21049ffe22bc0d384adb51454e15e 100644
--- a/chrome/browser/extensions/active_script_controller.h
+++ b/chrome/browser/extensions/active_script_controller.h
@@ -54,6 +54,13 @@ class ActiveScriptController : public LocationBarController::ActionProvider,
// Notifies the ActiveScriptController of detected ad injection.
void OnAdInjectionDetected(const std::set<std::string>& ad_injectors);
+ // Adds the visible host to |extension|'s active permissions, granting
+ // |extension| permission to always run script injections on the host.
+ void AlwaysRunOnVisibleHost(const Extension* extension);
+
+ // Returns true if there is an active script injection action for |extension|.
+ bool HasActiveScriptAction(const Extension* extension);
+
// LocationBarControllerProvider implementation.
virtual ExtensionAction* GetActionForExtension(
const Extension* extension) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698