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

Side by Side Diff: content/browser/download/download_types.cc

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with trunk Created 8 years, 12 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/download/download_types.h" 5 #include "content/browser/download/download_types.h"
6 6
7 DownloadSaveInfo::DownloadSaveInfo() { 7 DownloadSaveInfo::DownloadSaveInfo()
8 : offset(0) {
8 } 9 }
9 10
10 DownloadSaveInfo::DownloadSaveInfo(const DownloadSaveInfo& info) 11 DownloadSaveInfo::DownloadSaveInfo(const DownloadSaveInfo& info)
11 : file_path(info.file_path), 12 : file_path(info.file_path),
12 file_stream(info.file_stream), 13 file_stream(info.file_stream),
13 suggested_name(info.suggested_name) { 14 suggested_name(info.suggested_name),
15 offset(info.offset),
16 hash_state(info.hash_state) {
14 } 17 }
15 18
16 DownloadSaveInfo::~DownloadSaveInfo() { 19 DownloadSaveInfo::~DownloadSaveInfo() {
17 } 20 }
18 21
19 DownloadSaveInfo& DownloadSaveInfo::operator=(const DownloadSaveInfo& info) { 22 DownloadSaveInfo& DownloadSaveInfo::operator=(const DownloadSaveInfo& info) {
20 file_path = info.file_path; 23 file_path = info.file_path;
21 file_stream = info.file_stream; 24 file_stream = info.file_stream;
22 suggested_name = info.suggested_name; 25 suggested_name = info.suggested_name;
26 offset = info.offset;
27 suggested_name = info.suggested_name;
23 return *this; 28 return *this;
24 } 29 }
OLDNEW
« no previous file with comments | « content/browser/download/download_types.h ('k') | content/browser/download/mock_download_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698