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

Unified Diff: components/history/core/browser/download_row.h

Issue 2720613002: Downloads: Added transient flag to download item and download database (Closed)
Patch Set: Renamed to transient 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
Index: components/history/core/browser/download_row.h
diff --git a/components/history/core/browser/download_row.h b/components/history/core/browser/download_row.h
index cb0f0cc83862d4f9ce3d742460486b3de100291f..0a1252a42f3e2b18a14d5c921eb4809216987ff5 100644
--- a/components/history/core/browser/download_row.h
+++ b/components/history/core/browser/download_row.h
@@ -47,6 +47,7 @@ struct DownloadRow {
const std::string& guid,
bool download_opened,
base::Time last_access,
+ bool transient,
brettw 2017/03/29 22:54:13 This constructor has gotten absurd. I took too lon
shaktisahu 2017/03/29 23:46:47 I agree, it is really big constructor! But, in my
brettw 2017/03/30 16:44:43 I agree there is some benefit as you decribe, but
const std::string& ext_id,
const std::string& ext_name,
const std::vector<DownloadSliceInfo>& download_slice_info);
@@ -138,6 +139,9 @@ struct DownloadRow {
// The time when the download was last accessed.
base::Time last_access_time;
+ // Whether this download is transient.
brettw 2017/03/29 22:54:13 Can this comment define what transient means? I'm
shaktisahu 2017/03/29 23:46:47 Done.
+ bool transient;
+
// The id and name of the extension that created this download.
std::string by_ext_id;
std::string by_ext_name;

Powered by Google App Engine
This is Rietveld 408576698