diff options
author | pathorn@chromium.org <pathorn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 18:25:29 +0000 |
---|---|---|
committer | pathorn@chromium.org <pathorn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 18:25:29 +0000 |
commit | a3cd502bb5891548171a4bb17fe1ce351cd45ba7 (patch) | |
tree | 4a2b3ce80d07f2f248775f56cad8f6649fb66431 /chrome/browser/automation/automation_provider.h | |
parent | 4eb4799f5889c414331aca32a4f0595a36ab8765 (diff) | |
download | chromium_src-a3cd502bb5891548171a4bb17fe1ce351cd45ba7.zip chromium_src-a3cd502bb5891548171a4bb17fe1ce351cd45ba7.tar.gz chromium_src-a3cd502bb5891548171a4bb17fe1ce351cd45ba7.tar.bz2 |
Measure loading time of several tabs.
This is a new set of JSON automation calls which return the individual load times for each tab opened at startup.
BUG=44129
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49862
Review URL: http://codereview.chromium.org/2559001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49981 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_; |