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

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

Issue 296483011: Run any pending injections in ActiveScriptController if permission is granted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ben'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
« no previous file with comments | « no previous file | chrome/browser/extensions/active_script_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3edb667a87dad8b6e3df37998ec3bcee411a8bed..e2c7d9d1b507b278233eace924cf3cc0a6b804cd 100644
--- a/chrome/browser/extensions/active_script_controller.h
+++ b/chrome/browser/extensions/active_script_controller.h
@@ -56,6 +56,11 @@ class ActiveScriptController : public LocationBarController::ActionProvider,
int page_id,
const base::Closure& callback);
+ // Notifies the ActiveScriptController that an extension has been granted
+ // active tab permissions. This will run any pending injections for that
+ // extension.
+ void OnActiveTabPermissionGranted(const Extension* extension);
+
// Notifies the ActiveScriptController of detected ad injection.
void OnAdInjectionDetected(const std::vector<std::string> ad_injectors);
@@ -80,6 +85,9 @@ class ActiveScriptController : public LocationBarController::ActionProvider,
typedef std::vector<PendingRequest> PendingRequestList;
typedef std::map<std::string, PendingRequestList> PendingRequestMap;
+ // Runs any pending injections for the corresponding extension.
+ void RunPendingForExtension(const Extension* extension);
+
// Handles the NotifyExtensionScriptExecution message.
void OnNotifyExtensionScriptExecution(const std::string& extension_id,
int page_id);
« no previous file with comments | « no previous file | chrome/browser/extensions/active_script_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698