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

Unified Diff: chrome/browser/external_tab_container.h

Issue 366025: Modifying extension automation so that it is done through a particular... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « chrome/browser/extensions/extension_uitest.cc ('k') | chrome/browser/external_tab_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/external_tab_container.h
===================================================================
--- chrome/browser/external_tab_container.h (revision 31172)
+++ chrome/browser/external_tab_container.h (working copy)
@@ -155,6 +155,12 @@
// Returns NULL if we fail to find the cookie in the map.
static ExternalTabContainer* RemovePendingTab(intptr_t cookie);
+ // Enables extension automation (for e.g. UITests), with the current tab
+ // used as a conduit for the extension API messages being handled by the
+ // automation client.
+ void SetEnableExtensionAutomation(
+ const std::vector<std::string>& functions_enabled);
+
protected:
// Overridden from views::WidgetWin:
virtual LRESULT OnCreate(LPCREATESTRUCT create_struct);
@@ -210,6 +216,9 @@
// Contains ExternalTabContainers that have not been connected to as yet.
static PendingTabs pending_tabs_;
+ // True if this tab is currently the conduit for extension API automation.
+ bool enabled_extension_automation_;
+
// Allows us to run tasks on the ExternalTabContainer instance which are
// bound by its lifetime.
ScopedRunnableMethodFactory<ExternalTabContainer> external_method_factory_;
« no previous file with comments | « chrome/browser/extensions/extension_uitest.cc ('k') | chrome/browser/external_tab_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698