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

Unified Diff: content/public/browser/download_save_info.cc

Issue 1751603002: [Downloads] Rework how hashes are calculated for download files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of https://codereview.chromium.org/1781983002 since that's going in first. Created 4 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/public/browser/download_save_info.h ('k') | content/public/browser/download_url_parameters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_save_info.cc
diff --git a/content/public/browser/download_save_info.cc b/content/public/browser/download_save_info.cc
index 3093ee6844570c5f6a82a056391272b61ccd1aaa..eabc761ec677cba4d374419d5aee75aeafd006c3 100644
--- a/content/public/browser/download_save_info.cc
+++ b/content/public/browser/download_save_info.cc
@@ -13,4 +13,13 @@ DownloadSaveInfo::DownloadSaveInfo()
DownloadSaveInfo::~DownloadSaveInfo() {
}
+DownloadSaveInfo::DownloadSaveInfo(DownloadSaveInfo&& that)
+ : file_path(std::move(that.file_path)),
+ suggested_name(std::move(that.suggested_name)),
+ file(std::move(that.file)),
+ offset(that.offset),
+ hash_state(std::move(that.hash_state)),
+ hash_of_partial_file(std::move(that.hash_of_partial_file)),
+ prompt_for_save_location(that.prompt_for_save_location) {}
+
} // namespace content
« no previous file with comments | « content/public/browser/download_save_info.h ('k') | content/public/browser/download_url_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698