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

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

Issue 2758453003: Recording download mime types for normal profile (Closed)
Patch Set: comments 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 0ecbf0cc6a6b2fef3e23d95198bcd6853842bd43..d2060aa7e3b33a11b5c21c55a6dc964fd3275970 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.
@@ -94,6 +94,15 @@ enum DownloadCountTypes {
// Count of downloads that uses parallel download requests.
USES_PARALLEL_REQUESTS,
+ // Count of new downloads.
+ NEW_DOWNLOAD_COUNT,
+
+ // Count of new downloads that are started in normal profile.
+ NEW_DOWNLOAD_COUNT_NORMAL_PROFILE,
+
+ // Downloads that are actually completed in normal profile.
+ COMPLETED_COUNT_NORMAL_PROFILE,
+
DOWNLOAD_COUNT_TYPES_LAST_ENTRY
};
@@ -168,6 +177,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);
« 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