summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/navigation_state.h
diff options
context:
space:
mode:
authortonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-11 00:30:27 +0000
committertonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-11 00:30:27 +0000
commitb02a1f687526c0d012b4a8f4215cfd0056f0718f (patch)
tree7d131d38fbbb0b6df544aadbbfe0c2aa56973b60 /chrome/renderer/navigation_state.h
parenta6ab110bc7fa18aaf7f69f054344f12488291139 (diff)
downloadchromium_src-b02a1f687526c0d012b4a8f4215cfd0056f0718f.zip
chromium_src-b02a1f687526c0d012b4a8f4215cfd0056f0718f.tar.gz
chromium_src-b02a1f687526c0d012b4a8f4215cfd0056f0718f.tar.bz2
PLT updates.
Fix a bug introduced by me in 65223. The boolean indicating whether histograms have been dumped must be on navigation_state instead of page_load_histograms. Introduce a histogram for the Web Timing page load time which measures the commit to the start/end of the load event. Also introduce two histograms for troubleshooting abandonment and missing starts. We will use these histograms temporarily for vetting these metrics. BUG=None TEST=None git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65738 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/navigation_state.h')
-rw-r--r--chrome/renderer/navigation_state.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/renderer/navigation_state.h b/chrome/renderer/navigation_state.h
index 10eff0c..ab34b12 100644
--- a/chrome/renderer/navigation_state.h
+++ b/chrome/renderer/navigation_state.h
@@ -154,6 +154,12 @@ class NavigationState : public WebKit::WebDataSource::ExtraData {
first_paint_after_load_time_ = value;
}
+ // True iff the histograms for the associated frame have been dumped.
+ bool load_histograms_recorded() const { return load_histograms_recorded_; }
+ void set_load_histograms_recorded(bool value) {
+ load_histograms_recorded_ = value;
+ }
+
// True if we have already processed the "DidCommitLoad" event for this
// request. Used by session history.
bool request_committed() const { return request_committed_; }
@@ -274,6 +280,7 @@ class NavigationState : public WebKit::WebDataSource::ExtraData {
base::Time finish_load_time_;
base::Time first_paint_time_;
base::Time first_paint_after_load_time_;
+ bool load_histograms_recorded_;
bool request_committed_;
bool is_content_initiated_;
int32 pending_page_id_;