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

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

Issue 10695070: Implement scriptBadge.requestToAct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/location_bar_controller.h
diff --git a/chrome/browser/extensions/location_bar_controller.h b/chrome/browser/extensions/location_bar_controller.h
index 127661f88f3ac02996a0b8c3b38047979a9d6d89..b1b3c3d93c55900a55a47c89e4846f6a161992fb 100644
--- a/chrome/browser/extensions/location_bar_controller.h
+++ b/chrome/browser/extensions/location_bar_controller.h
@@ -32,6 +32,10 @@ class LocationBarController {
// Gets the action data for all extensions.
virtual std::vector<ExtensionAction*> GetCurrentActions() const = 0;
+ // Requests permission from the user to execute a script, due to a
+ // scriptBadge.requestToAct() call.
+ virtual void RequestScriptPermission(const std::string& extension_id) = 0;
+
// Notifies this that the badge for an extension has been clicked with some
// mouse button (1 for left, 2 for middle, and 3 for right click), and
// returns the action that should be taken in response (if any).

Powered by Google App Engine
This is Rietveld 408576698