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

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

Issue 2720613002: Downloads: Added transient flag to download item and download database (Closed)
Patch Set: fix tests Created 3 years, 9 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/download_item_factory.h ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 86f9f43220a94c243d22459f02d7ab7e20e46f99..3db73335f397c3d6fdb2c9c30d84e638f1d83635 100644
--- a/content/browser/download/download_item_impl.h
+++ b/content/browser/download/download_item_impl.h
@@ -77,6 +77,7 @@ class CONTENT_EXPORT DownloadItemImpl
DownloadInterruptReason interrupt_reason,
bool opened,
base::Time last_access_time,
+ bool transient,
const std::vector<DownloadItem::ReceivedSlice>& received_slices,
const net::NetLogWithSource& net_log);
@@ -165,6 +166,7 @@ class CONTENT_EXPORT DownloadItemImpl
bool GetAutoOpened() override;
bool GetOpened() const override;
base::Time GetLastAccessTime() const override;
+ bool IsTransient() const override;
BrowserContext* GetBrowserContext() const override;
WebContents* GetWebContents() const override;
void OnContentCheckCompleted(DownloadDangerType danger_type) override;
@@ -629,6 +631,9 @@ class CONTENT_EXPORT DownloadItemImpl
// Time when the download was last accessed.
base::Time last_access_time_;
+ // Whether the download item should be transient and not shown in the UI.
+ bool transient_ = false;
+
// Did the delegate delay calling Complete on this download?
bool delegate_delayed_complete_ = false;
« no previous file with comments | « content/browser/download/download_item_factory.h ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698