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

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

Issue 160513002: Reports Prerender and Profile Total Bytes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
Index: chrome/browser/prerender/prerender_histograms.h
diff --git a/chrome/browser/prerender/prerender_histograms.h b/chrome/browser/prerender/prerender_histograms.h
index 0a9b8ee554a4362ce9dc67d1b22a7cc0a3f255ce..23a7867c9a6d35ef6d1ab095b3e08e0d27e58525 100644
--- a/chrome/browser/prerender/prerender_histograms.h
+++ b/chrome/browser/prerender/prerender_histograms.h
@@ -109,6 +109,11 @@ class PrerenderHistograms {
uint8 experiment_id,
bool visited_before) const;
+ // Record the bytes in the prerender, whether it was used or not, and the
+ // total number of bytes fetched for this profile since the last call to
+ // RecordBytes.
+ void RecordBytes(bool used, int64 prerender_bytes, int64 profile_bytes);
tburkard 2014/02/12 19:54:56 nit: Perhaps a more descriptive name, like RecordN
jkarlin 2014/02/13 13:24:49 Done.
+
private:
base::TimeTicks GetCurrentTimeTicks() const;
@@ -149,6 +154,10 @@ class PrerenderHistograms {
bool seen_any_pageload_;
bool seen_pageload_started_after_prerender_;
+ // The number of network bytes transferred for this profile that was
+ // previously reported to UMA.
+ int64 last_profile_network_bytes_;
+
DISALLOW_COPY_AND_ASSIGN(PrerenderHistograms);
};

Powered by Google App Engine
This is Rietveld 408576698