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

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 8fede1718c13d7b203db5ac5148bbef4f1482b5e..33eefcb6a8cfa52300830e78d100a319587a9093 100644
--- a/chrome/browser/extensions/active_script_controller.h
+++ b/chrome/browser/extensions/active_script_controller.h
@@ -72,8 +72,12 @@ class ActiveScriptController : public LocationBarController::ActionProvider,
typedef std::map<std::string, PendingRequestList> PendingRequestMap;
// Handles the NotifyExtensionScriptExecution message.
- void OnNotifyExtensionScriptExecution(const std::string& extension_id,
- int page_id);
+ void OnRequestContentScriptPermission(const std::string& extension_id,
+ int page_id,
+ int request_id);
+
+ // Grant the request for permission.
+ void GrantContentScriptPermission(int request_id);
// Returns true if the ActiveScriptController should process the request. This
// can be false if, e.g., the page id does not match, the extension cannot

Powered by Google App Engine
This is Rietveld 408576698