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

Unified Diff: content/public/browser/download_item.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/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 48309b60b1e39503fb01a663c43c69b7500c7a7e..0b712396e339b27be422f4dc5891d66036bc72f7 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -402,6 +402,10 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// been opened.
virtual base::Time GetLastAccessTime() const = 0;
+ // Returns whether the download item is transient. Transient items are cleaned
+ // up after completion and not shown in the UI.
+ virtual bool IsTransient() const = 0;
+
// Misc State accessors ---------------------------------------------------
// BrowserContext that indirectly owns this download. Always valid.
« 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