diff options
author | pathorn@chromium.org <pathorn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 00:08:34 +0000 |
---|---|---|
committer | pathorn@chromium.org <pathorn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 00:08:34 +0000 |
commit | 5c1304300d3cdeecb75aa85f0c207d65e0cbf6cf (patch) | |
tree | 9f972c839215c5539913f5db14a8367eba8e776d /chrome/browser/automation/automation_provider.h | |
parent | fcb9b14eb0197b937460acba77ee164a8f0ab5ff (diff) | |
download | chromium_src-5c1304300d3cdeecb75aa85f0c207d65e0cbf6cf.zip chromium_src-5c1304300d3cdeecb75aa85f0c207d65e0cbf6cf.tar.gz chromium_src-5c1304300d3cdeecb75aa85f0c207d65e0cbf6cf.tar.bz2 |
Measure loading time of several tabs.
This is a new set of ui tests to load several tabs, and look at how long it takes for a subset to finish loading.
BUG=44129
TEST=none
Review URL: http://codereview.chromium.org/2559001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49862 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_provider.h')
-rw-r--r-- | chrome/browser/automation/automation_provider.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/chrome/browser/automation/automation_provider.h b/chrome/browser/automation/automation_provider.h index bd37a4b..b644dd4 100644 --- a/chrome/browser/automation/automation_provider.h +++ b/chrome/browser/automation/automation_provider.h @@ -50,6 +50,7 @@ class ExtensionTestResultNotificationObserver; class ExternalTabContainer; class LoginHandler; class MetricEventDurationObserver; +class InitialLoadObserver; class NavigationControllerRestoredObserver; struct AutocompleteMatchData; @@ -376,6 +377,15 @@ class AutomationProvider : public base::RefCounted<AutomationProvider>, DictionaryValue* args, IPC::Message* reply_message); + // Return load times of initial tabs. + // Uses the JSON interface for input/output. + // Only includes tabs from command line arguments or session restore. + // See declaration of InitialLoadObserver in automation_provider_observers.h + // for example response. + void GetInitialLoadTimes(Browser* browser, + DictionaryValue* args, + IPC::Message* reply_message); + // Get info about plugins. // Uses the JSON interface for input/output. void GetPluginsInfo(Browser* browser, @@ -770,7 +780,7 @@ class AutomationProvider : public base::RefCounted<AutomationProvider>, typedef std::map<int, ExtensionPortContainer*> PortContainerMap; scoped_ptr<IPC::ChannelProxy> channel_; - scoped_ptr<NotificationObserver> initial_load_observer_; + scoped_ptr<InitialLoadObserver> initial_load_observer_; scoped_ptr<NotificationObserver> new_tab_ui_load_observer_; scoped_ptr<NotificationObserver> find_in_page_observer_; scoped_ptr<NotificationObserver> dom_operation_observer_; |