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

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

Issue 307933008: Revert 273866 "Block content scripts from executing until user g..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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: trunk/src/chrome/browser/extensions/active_script_controller.h
===================================================================
--- trunk/src/chrome/browser/extensions/active_script_controller.h (revision 274101)
+++ trunk/src/chrome/browser/extensions/active_script_controller.h (working copy)
@@ -62,7 +62,7 @@
void OnActiveTabPermissionGranted(const Extension* extension);
// Notifies the ActiveScriptController of detected ad injection.
- void OnAdInjectionDetected(const std::set<std::string>& ad_injectors);
+ void OnAdInjectionDetected(const std::set<std::string> ad_injectors);
// LocationBarControllerProvider implementation.
virtual ExtensionAction* GetActionForExtension(
@@ -88,14 +88,10 @@
// Runs any pending injections for the corresponding extension.
void RunPendingForExtension(const Extension* extension);
- // Handle the RequestContentScriptPermission message.
- void OnRequestContentScriptPermission(const std::string& extension_id,
- int page_id,
- int request_id);
+ // Handles the NotifyExtensionScriptExecution message.
+ void OnNotifyExtensionScriptExecution(const std::string& extension_id,
+ int page_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