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

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

Issue 8008021: Add new UMA stats to get a handle on Downloads UI Usage (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: comments Created 9 years, 2 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_item.h
diff --git a/content/browser/download/download_item.h b/content/browser/download/download_item.h
index c3d78ac88672532e3122156080379d03cd55a752..58702aea02157cec71ebae8981cf4217f85d8a2a 100644
--- a/content/browser/download/download_item.h
+++ b/content/browser/download/download_item.h
@@ -278,6 +278,7 @@ class CONTENT_EXPORT DownloadItem {
int32 id() const { return download_id_; }
DownloadId global_id() const;
base::Time start_time() const { return start_time_; }
+ base::Time end_time() const { return end_time_; }
void set_db_handle(int64 handle) { db_handle_ = handle; }
int64 db_handle() const { return db_handle_; }
DownloadManager* download_manager() { return download_manager_; }
@@ -432,6 +433,9 @@ class CONTENT_EXPORT DownloadItem {
// Time the download was started
base::Time start_time_;
+ // Time the download completed
+ base::Time end_time_;
+
// Our persistent store handle
int64 db_handle_;

Powered by Google App Engine
This is Rietveld 408576698