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

Unified Diff: chrome/browser/ui/extensions/extension_action_view_controller.h

Issue 1804123003: [Extensions] Refactor extension action execution (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/ui/extensions/extension_action_view_controller.h
diff --git a/chrome/browser/ui/extensions/extension_action_view_controller.h b/chrome/browser/ui/extensions/extension_action_view_controller.h
index acbae367994eceb193d573578fa592d54b180981..8b6476e25a02a8299270a8040389bd479968c26e 100644
--- a/chrome/browser/ui/extensions/extension_action_view_controller.h
+++ b/chrome/browser/ui/extensions/extension_action_view_controller.h
@@ -142,6 +142,14 @@ class ExtensionActionViewController
content::WebContents* web_contents,
const gfx::Size& size);
+ // Returns true if this extension has a page action and that page action wants
+ // to run on the given |web_contents|.
+ bool PageActionWantsToRun(content::WebContents* web_contents) const;
+
+ // Returns true if this extension has been blocked on the given
+ // |web_contents|.
+ bool HasBeenBlocked(content::WebContents* web_contents) const;
+
// The extension associated with the action we're displaying.
scoped_refptr<const extensions::Extension> extension_;

Powered by Google App Engine
This is Rietveld 408576698