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

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

Issue 2705283003: Added last_access_time to DownloadItem and History DB (Closed)
Patch Set: rebase origin/master Created 3 years, 10 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/mock_download_item_impl.cc ('k') | content/public/browser/download_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_item.h
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
index 33ce11453384edc80aabaa76f5d6be9ae97cf601..80e0c63cd53514b922698a4faf3d08964a7cba58 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -396,6 +396,10 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// Returns true if the download has been opened.
virtual bool GetOpened() const = 0;
+ // Time the download was last accessed. Returns NULL if the download has never
+ // been opened.
+ virtual base::Time GetLastAccessTime() const = 0;
+
// Misc State accessors ---------------------------------------------------
// BrowserContext that indirectly owns this download. Always valid.
@@ -422,6 +426,9 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// Mark the download as having been opened (without actually opening it).
virtual void SetOpened(bool opened) = 0;
+ // Updates the last access time of the download.
+ virtual void SetLastAccessTime(base::Time last_access_time) = 0;
+
// Set a display name for the download that will be independent of the target
// filename. If |name| is not empty, then GetFileNameToReportUser() will
// return |name|. Has no effect on the final target filename.
« no previous file with comments | « content/browser/download/mock_download_item_impl.cc ('k') | content/public/browser/download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698