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

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: Fixing prerender UMA byte tracking. 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
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | chrome/browser/prerender/prerender_histograms.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fccd75f280f5d85ab7ad0c1735a7a3c3c74a5b15 100644
--- a/chrome/browser/prerender/prerender_histograms.h
+++ b/chrome/browser/prerender/prerender_histograms.h
@@ -109,6 +109,13 @@ 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 RecordNetworkBytes(bool used,
+ int64 prerender_bytes,
+ int64 profile_bytes);
+
private:
base::TimeTicks GetCurrentTimeTicks() const;
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | chrome/browser/prerender/prerender_histograms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698