summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/tab_contents.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents.h')
-rw-r--r--chrome/browser/tab_contents/tab_contents.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.h b/chrome/browser/tab_contents/tab_contents.h
index 87aeb76..83613ba 100644
--- a/chrome/browser/tab_contents/tab_contents.h
+++ b/chrome/browser/tab_contents/tab_contents.h
@@ -617,6 +617,16 @@ class TabContents : public PageNavigator,
opener_dom_ui_type_ = opener_dom_ui_type;
}
+ // We want to time how long it takes to create a new tab page. This method
+ // gets called as parts of the new tab page have loaded.
+ void LogNewTabTime(const std::string& event_name);
+
+ // Set the time when we started to create the new tab page. This time is
+ // from before we created this TabContents.
+ void set_new_tab_start_time(const base::TimeTicks& time) {
+ new_tab_start_time_ = time;
+ }
+
private:
friend class NavigationController;
// Used to access the child_windows_ (ConstrainedWindowList) for testing
@@ -1151,6 +1161,9 @@ class TabContents : public PageNavigator,
// non-NULL and represent the DOMUI of the opening renderer.
DOMUITypeID opener_dom_ui_type_;
+ // The time that we started to create the new tab page.
+ base::TimeTicks new_tab_start_time_;
+
// ---------------------------------------------------------------------------
DISALLOW_COPY_AND_ASSIGN(TabContents);