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..2d2543b7b5a985514e69c202e98257b29f5f4efd 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 host to |extension|'s active permissions, granting |
+ // |extension| permission to always run script injections on the host. |
+ void AlwaysRunOnVisibleHost(const Extension* extension); |
+ |
+ // Returns whether there is an active script injection action for |
Devlin
2014/08/13 16:55:03
nit: Prefer "Returns true if there..."
gpdavis
2014/08/13 22:18:36
Done.
|
+ // |extension|. |
+ bool HasActiveScriptAction(const Extension* extension); |
+ |
// LocationBarControllerProvider implementation. |
virtual ExtensionAction* GetActionForExtension( |
const Extension* extension) OVERRIDE; |