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

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

Issue 2758453003: Recording download mime types for normal profile (Closed)
Patch Set: Mime type breakdown 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
Index: content/browser/download/download_stats.h
diff --git a/content/browser/download/download_stats.h b/content/browser/download/download_stats.h
index c4802438737d8aea64728762a4015e7a402313f8..bc6f921114ca4f45db9e0055befb1aa11276a1c9 100644
--- a/content/browser/download/download_stats.h
+++ b/content/browser/download/download_stats.h
@@ -49,7 +49,7 @@ enum DownloadCountTypes {
// Downloads that are cancelled before completion (user action or error).
CANCELLED_COUNT,
- // Downloads that are started. Should be equal to UNTHROTTLED_COUNT.
+ // Downloads that are started.
START_COUNT,
// Downloads that were interrupted by the OS.
@@ -91,6 +91,12 @@ enum DownloadCountTypes {
// candidates for partial resumption.
STRONG_VALIDATOR_AND_ACCEPTS_RANGES,
+ // Downloads that are started in normal profile.
+ START_COUNT_NORMAL_PROFILE,
+
+ // Downloads that are actually completed in normal profile.
+ COMPLETED_COUNT_NORMAL_PROFILE,
+
DOWNLOAD_COUNT_TYPES_LAST_ENTRY
};
@@ -165,6 +171,9 @@ void RecordDangerousDownloadDiscard(
// Records the mime type of the download.
void RecordDownloadMimeType(const std::string& mime_type);
+// Records the mime type of the download for normal profile.
+void RecordDownloadMimeTypeForNormalProfile(const std::string& mime_type);
+
// Records usage of Content-Disposition header.
void RecordDownloadContentDisposition(const std::string& content_disposition);

Powered by Google App Engine
This is Rietveld 408576698