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

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

Issue 288053002: Block content scripts from executing until user grants permission (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: 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 e2c7d9d1b507b278233eace924cf3cc0a6b804cd..3a3398cb1af3aa9008488c69001b1c993844b55d 100644
--- a/chrome/browser/extensions/active_script_controller.h
+++ b/chrome/browser/extensions/active_script_controller.h
@@ -88,9 +88,13 @@ class ActiveScriptController : public LocationBarController::ActionProvider,
// 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);
+ // Handle the RequestContentScriptPermission message.
+ void OnRequestContentScriptPermission(const std::string& extension_id,
+ int page_id,
+ int request_id);
+
+ // Grants permission for the given request to run.
+ void GrantContentScriptPermission(int request_id);
// content::WebContentsObserver implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698