Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1732)

Unified Diff: chrome/browser/prerender/prerender_tab_helper.h

Issue 2423383002: [Prerender] first contentful paint histograms. (Closed)
Patch Set: MSVC compilation error Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prerender/prerender_manager.cc ('k') | chrome/browser/prerender/prerender_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_tab_helper.h
diff --git a/chrome/browser/prerender/prerender_tab_helper.h b/chrome/browser/prerender/prerender_tab_helper.h
index bc5db07e2888bac3e7f1423ef1c219a2d0db4591..5f96be28c3d8779e77883d3bb77545f9e770ed57 100644
--- a/chrome/browser/prerender/prerender_tab_helper.h
+++ b/chrome/browser/prerender/prerender_tab_helper.h
@@ -48,6 +48,10 @@ class PrerenderTabHelper
// Called when this prerendered WebContents has just been swapped in.
void PrerenderSwappedIn();
+ base::TimeTicks swap_ticks() const { return swap_ticks_; }
+
+ Origin origin() const { return origin_; }
+
private:
explicit PrerenderTabHelper(content::WebContents* web_contents);
friend class content::WebContentsUserData<PrerenderTabHelper>;
@@ -86,6 +90,10 @@ class PrerenderTabHelper
// swapped in).
base::TimeTicks actual_load_start_;
+ // Record the most recent swap time. This differs from |pplt_load_start_| in
+ // that it is not reset in various circumstances, like a load being stopped.
+ base::TimeTicks swap_ticks_;
+
// Current URL being loaded.
GURL url_;
« no previous file with comments | « chrome/browser/prerender/prerender_manager.cc ('k') | chrome/browser/prerender/prerender_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698