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

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: merge 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
« no previous file with comments | « chrome/browser/ui/views/download/download_shelf_view.cc ('k') | content/browser/download/download_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_item.h
diff --git a/content/browser/download/download_item.h b/content/browser/download/download_item.h
index 6e04cdcdbe28e163fa48ff365624a41402853a06..baf3ca11e0362358588aba9a3271ae9212945697 100644
--- a/content/browser/download/download_item.h
+++ b/content/browser/download/download_item.h
@@ -279,6 +279,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_; }
@@ -433,6 +434,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_;
« no previous file with comments | « chrome/browser/ui/views/download/download_shelf_view.cc ('k') | content/browser/download/download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698