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. |