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

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

Issue 1924473003: [Downloads] Use the initiating StoragePartition for resumption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo in comment Created 4 years, 7 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 04ee62c4940d7a27f13cd53d5100d037f7f74214..8c14601feede955e19930788e4f5775fe11f2159 100644
--- a/components/history/core/browser/download_row.cc
+++ b/components/history/core/browser/download_row.cc
@@ -24,6 +24,7 @@ DownloadRow::DownloadRow(const base::FilePath& current_path,
const base::FilePath& target_path,
const std::vector<GURL>& url_chain,
const GURL& referrer_url,
+ const GURL& site_url,
const GURL& tab_url,
const GURL& tab_referrer_url,
const std::string& http_method,
@@ -48,6 +49,7 @@ DownloadRow::DownloadRow(const base::FilePath& current_path,
target_path(target_path),
url_chain(url_chain),
referrer_url(referrer_url),
+ site_url(site_url),
tab_url(tab_url),
tab_referrer_url(tab_referrer_url),
http_method(http_method),
@@ -76,7 +78,8 @@ DownloadRow::~DownloadRow() {}
bool DownloadRow::operator==(const DownloadRow& rhs) const {
return current_path == rhs.current_path && target_path == rhs.target_path &&
url_chain == rhs.url_chain && referrer_url == rhs.referrer_url &&
- tab_url == rhs.tab_url && tab_referrer_url == rhs.tab_referrer_url &&
+ site_url == rhs.site_url && tab_url == rhs.tab_url &&
+ tab_referrer_url == rhs.tab_referrer_url &&
http_method == rhs.http_method && mime_type == rhs.mime_type &&
original_mime_type == rhs.original_mime_type &&
start_time == rhs.start_time && end_time == rhs.end_time &&
« no previous file with comments | « components/history/core/browser/download_row.h ('k') | components/history/core/browser/history_backend_db_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698