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

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: ReloadExtension in unittest 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 0ec50f7b330c841cb9a86ffe93694e2b6fb6b68d..50e9837f7f9a2374221647de8b701af9bd6d0770 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;
class ContextMenuMatcher;
@@ -34,7 +38,8 @@ class ExtensionContextMenuModel
HIDE,
UNINSTALL,
MANAGE,
- INSPECT_POPUP
+ INSPECT_POPUP,
+ ALWAYS_RUN
};
// Type of action the extension icon represents.
@@ -89,6 +94,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;
+
// Appends the extension's context menu items.
void AppendExtensionItems();

Powered by Google App Engine
This is Rietveld 408576698