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

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

Issue 396033002: Support "always allow" for runtime script execution (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Histogram updates Created 6 years, 4 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/extension_context_menu_model.h
diff --git a/chrome/browser/extensions/extension_context_menu_model.h b/chrome/browser/extensions/extension_context_menu_model.h
index a07d9d534fac896f25eae444bf455c9276b2a9b1..cd002127bf228dfab1f6785bfb1fbea3a7792b96 100644
--- a/chrome/browser/extensions/extension_context_menu_model.h
+++ b/chrome/browser/extensions/extension_context_menu_model.h
@@ -15,6 +15,10 @@ class Browser;
class ExtensionAction;
class Profile;
+namespace content {
+class WebContents;
+}
+
namespace extensions {
class Extension;
}
@@ -28,6 +32,7 @@ class ExtensionContextMenuModel
public:
enum MenuEntries {
NAME = 0,
+ ALWAYS_RUN,
not at google - send to devlin 2014/08/11 22:59:30 add it to the bottom.
gpdavis 2014/08/12 00:52:05 Done.
CONFIGURE,
HIDE,
UNINSTALL,
@@ -82,6 +87,9 @@ class ExtensionContextMenuModel
// extension has been uninstalled and no longer exists.
const extensions::Extension* GetExtension() const;
+ // Returns the active web contents.
+ content::WebContents* GetActiveWebContents() const;
+
// A copy of the extension's id.
std::string extension_id_;

Powered by Google App Engine
This is Rietveld 408576698