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

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: Discriminate between explicit and scriptable hosts, other minor changes Created 6 years, 5 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..af3a225a7e92ed65d4ba09dc4175bc9beee26a0f 100644
--- a/chrome/browser/extensions/active_script_controller.h
+++ b/chrome/browser/extensions/active_script_controller.h
@@ -54,6 +54,14 @@ class ActiveScriptController : public LocationBarController::ActionProvider,
// Notifies the ActiveScriptController of detected ad injection.
void OnAdInjectionDetected(const std::set<std::string>& ad_injectors);
+ // Adds the visible URL to |extension|'s persisted permissions for script
+ // injection requests.
+ void AddPersistedPermission(const Extension* extension);
+
+ // Returns whether 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