Index: content/browser/download/download_item_impl.h |
diff --git a/content/browser/download/download_item_impl.h b/content/browser/download/download_item_impl.h |
index c899f25016b113ef24356a9f5cb565b2d8be20e4..4c186c96049d4b6bf180fc237e27daf99fbbbc12 100644 |
--- a/content/browser/download/download_item_impl.h |
+++ b/content/browser/download/download_item_impl.h |
@@ -74,6 +74,7 @@ class CONTENT_EXPORT DownloadItemImpl |
DownloadDangerType danger_type, |
DownloadInterruptReason interrupt_reason, |
bool opened, |
+ const base::Time& last_access_time, |
const net::NetLogWithSource& net_log); |
// Constructing for a regular download. |
@@ -158,11 +159,13 @@ class CONTENT_EXPORT DownloadItemImpl |
bool GetOpenWhenComplete() const override; |
bool GetAutoOpened() override; |
bool GetOpened() const override; |
+ base::Time GetLastAccessTime() const override; |
BrowserContext* GetBrowserContext() const override; |
WebContents* GetWebContents() const override; |
void OnContentCheckCompleted(DownloadDangerType danger_type) override; |
void SetOpenWhenComplete(bool open) override; |
void SetOpened(bool opened) override; |
+ void UpdateLastAccessTime() override; |
void SetDisplayName(const base::FilePath& name) override; |
std::string DebugString(bool verbose) const override; |
@@ -617,6 +620,9 @@ class CONTENT_EXPORT DownloadItemImpl |
// be treated as though the user opened it. |
bool opened_ = false; |
+ // Time when the download was last accessed. |
+ base::Time last_access_time_; |
+ |
// Did the delegate delay calling Complete on this download? |
bool delegate_delayed_complete_ = false; |