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

Unified 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 9 years 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/browser/download/download_types.h ('k') | content/browser/download/mock_download_file.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_types.cc
diff --git a/content/browser/download/download_types.cc b/content/browser/download/download_types.cc
index 007ca56ace80d0c566bd0188477a17a09f3429b7..34aceb36ea7c736a7921b656ed94da99d4b71dd9 100644
--- a/content/browser/download/download_types.cc
+++ b/content/browser/download/download_types.cc
@@ -4,13 +4,16 @@
#include "content/browser/download/download_types.h"
-DownloadSaveInfo::DownloadSaveInfo() {
+DownloadSaveInfo::DownloadSaveInfo()
+ : offset(0) {
}
DownloadSaveInfo::DownloadSaveInfo(const DownloadSaveInfo& info)
: file_path(info.file_path),
file_stream(info.file_stream),
- suggested_name(info.suggested_name) {
+ suggested_name(info.suggested_name),
+ offset(info.offset),
+ hash_state(info.hash_state) {
}
DownloadSaveInfo::~DownloadSaveInfo() {
@@ -20,5 +23,7 @@ DownloadSaveInfo& DownloadSaveInfo::operator=(const DownloadSaveInfo& info) {
file_path = info.file_path;
file_stream = info.file_stream;
suggested_name = info.suggested_name;
+ offset = info.offset;
+ suggested_name = info.suggested_name;
return *this;
}
« 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