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

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

Issue 2665243003: add a download slices table into history download db (Closed)
Patch Set: addressing comments Created 3 years, 11 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.cc
diff --git a/components/history/core/browser/download_row.cc b/components/history/core/browser/download_row.cc
index 8c14601feede955e19930788e4f5775fe11f2159..f4e7462068b0fd9640ace7c0b8d18bf541814799 100644
--- a/components/history/core/browser/download_row.cc
+++ b/components/history/core/browser/download_row.cc
@@ -44,7 +44,8 @@ DownloadRow::DownloadRow(const base::FilePath& current_path,
const std::string& guid,
bool download_opened,
const std::string& ext_id,
- const std::string& ext_name)
+ const std::string& ext_name,
+ const std::vector<DownloadJobInfo>& download_job_info)
: current_path(current_path),
target_path(target_path),
url_chain(url_chain),
@@ -69,7 +70,8 @@ DownloadRow::DownloadRow(const base::FilePath& current_path,
guid(guid),
opened(download_opened),
by_ext_id(ext_id),
- by_ext_name(ext_name) {}
+ by_ext_name(ext_name),
+ download_job_info(download_job_info) {}
DownloadRow::DownloadRow(const DownloadRow& other) = default;
@@ -89,7 +91,8 @@ bool DownloadRow::operator==(const DownloadRow& rhs) const {
danger_type == rhs.danger_type &&
interrupt_reason == rhs.interrupt_reason && hash == rhs.hash &&
id == rhs.id && guid == rhs.guid && opened == rhs.opened &&
- by_ext_id == rhs.by_ext_id && by_ext_name == rhs.by_ext_name;
+ by_ext_id == rhs.by_ext_id && by_ext_name == rhs.by_ext_name &&
+ download_job_info == rhs.download_job_info;
}
} // namespace history

Powered by Google App Engine
This is Rietveld 408576698