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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/browser/download_save_info.h" 5 #include "content/public/browser/download_save_info.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 DownloadSaveInfo::DownloadSaveInfo() 9 DownloadSaveInfo::DownloadSaveInfo()
10 : offset(0), prompt_for_save_location(false) { 10 : offset(0), prompt_for_save_location(false) {
11 } 11 }
12 12
13 DownloadSaveInfo::~DownloadSaveInfo() { 13 DownloadSaveInfo::~DownloadSaveInfo() {
14 } 14 }
15 15
16 DownloadSaveInfo::DownloadSaveInfo(DownloadSaveInfo&& that)
17 : file_path(std::move(that.file_path)),
18 suggested_name(std::move(that.suggested_name)),
19 file(std::move(that.file)),
20 offset(that.offset),
21 hash_state(std::move(that.hash_state)),
22 hash_of_partial_file(std::move(that.hash_of_partial_file)),
23 prompt_for_save_location(that.prompt_for_save_location) {}
24
16 } // namespace content 25 } // namespace content
OLDNEW
« 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