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

Unified Diff: content/browser/download/download_stats.h

Issue 2789623005: Add UMA metric to track parallel download requests stats. (Closed)
Patch Set: Work on feedback. Created 3 years, 9 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 | « content/browser/download/download_request_core.cc ('k') | content/browser/download/download_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_stats.h
diff --git a/content/browser/download/download_stats.h b/content/browser/download/download_stats.h
index 8d3fea375ff41f7d821453763e67afe79a2ac1e8..0c4a5be726edf4de5dd19f07118aec46ae9dce35 100644
--- a/content/browser/download/download_stats.h
+++ b/content/browser/download/download_stats.h
@@ -221,6 +221,13 @@ void RecordFileBandwidth(size_t length,
// Increment one of the count for parallel download.
void RecordParallelDownloadCount(DownloadCountTypes type);
+// Records the actual total number of requests sent for a parallel download,
+// including the initial request.
+void RecordParallelDownloadRequestCount(int request_count);
+
+// Records if each byte stream is successfully added to download sink.
+void RecordParallelDownloadAddStreamSuccess(bool success);
+
// Records the bandwidth for parallel download and estimates the saved time at
// the file end. Does not count in any hash computation or file open/close time.
void RecordParallelDownloadStats(
« no previous file with comments | « content/browser/download/download_request_core.cc ('k') | content/browser/download/download_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698