summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/automation_provider.h
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 00:16:15 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 00:16:15 +0000
commit1cc48f14278f4bb882d633ab4776b09478e7f668 (patch)
tree94ddd4801b3a78bbdc2b12069a19ab7936583e99 /chrome/browser/automation/automation_provider.h
parent551d976c7518976334d2bb2dfe978c7b28678172 (diff)
downloadchromium_src-1cc48f14278f4bb882d633ab4776b09478e7f668.zip
chromium_src-1cc48f14278f4bb882d633ab4776b09478e7f668.tar.gz
chromium_src-1cc48f14278f4bb882d633ab4776b09478e7f668.tar.bz2
Add startup tests that log start script, domcontentloaded, and onload.
TabContents sends a notification which is picked up by the browser automation controller which keeps a map of events and times. Add an automation IPC so that tests can get these values from the browser automation controller. Finally, add a feature startup test to collect these values. This is just to get some consistent timings from the buildbot. BUG=23120 Review URL: http://codereview.chromium.org/246105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28199 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_provider.h')
-rw-r--r--chrome/browser/automation/automation_provider.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/browser/automation/automation_provider.h b/chrome/browser/automation/automation_provider.h
index ef1f228..4ebe00e 100644
--- a/chrome/browser/automation/automation_provider.h
+++ b/chrome/browser/automation/automation_provider.h
@@ -40,10 +40,11 @@ struct Reposition_Params;
struct ExternalTabSettings;
}
+class ExtensionPortContainer;
+class ExternalTabContainer;
class LoginHandler;
+class MetricEventDurationObserver;
class NavigationControllerRestoredObserver;
-class ExternalTabContainer;
-class ExtensionPortContainer;
struct AutocompleteMatchData;
namespace gfx {
@@ -337,6 +338,10 @@ class AutomationProvider : public base::RefCounted<AutomationProvider>,
void GetPageType(int handle, bool* success,
NavigationEntry::PageType* page_type);
+ // Gets the duration in ms of the last event matching |event_name|.
+ // |duration_ms| is -1 if the event hasn't occurred yet.
+ void GetMetricEventDuration(const std::string& event_name, int* duration_ms);
+
// Simulates an action on the SSL blocking page at the tab specified by
// |handle|. If |proceed| is true, it is equivalent to the user pressing the
// 'Proceed' button, if false the 'Get me out of there button'.
@@ -510,6 +515,7 @@ class AutomationProvider : public base::RefCounted<AutomationProvider>,
scoped_ptr<NotificationObserver> find_in_page_observer_;
scoped_ptr<NotificationObserver> dom_operation_observer_;
scoped_ptr<NotificationObserver> dom_inspector_observer_;
+ scoped_ptr<MetricEventDurationObserver> metric_event_duration_observer_;
scoped_ptr<AutomationBrowserTracker> browser_tracker_;
scoped_ptr<AutomationTabTracker> tab_tracker_;
scoped_ptr<AutomationWindowTracker> window_tracker_;