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

Unified Diff: content/browser/download/download_persistent_store_info.cc

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup, and added fields to DownloadPersistentStoreInfo. Created 9 years, 1 month 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: content/browser/download/download_persistent_store_info.cc
diff --git a/content/browser/download/download_persistent_store_info.cc b/content/browser/download/download_persistent_store_info.cc
index a15f1b7e4518fb1d230c8fecff40abc848ec37b1..043dc5d493115679cbd990a0d296c00a2827dd29 100644
--- a/content/browser/download/download_persistent_store_info.cc
+++ b/content/browser/download/download_persistent_store_info.cc
@@ -11,7 +11,9 @@ DownloadPersistentStoreInfo::DownloadPersistentStoreInfo()
total_bytes(0),
state(0),
db_handle(0),
- opened(false) {
+ opened(false),
+ local_id(-1),
+ last_reason(DOWNLOAD_INTERRUPT_REASON_NONE) {
}
DownloadPersistentStoreInfo::DownloadPersistentStoreInfo(
@@ -24,7 +26,12 @@ DownloadPersistentStoreInfo::DownloadPersistentStoreInfo(
int64 total,
int32 download_state,
int64 handle,
- bool download_opened)
+ bool download_opened,
+ int32 local_id,
+ const std::string& hash,
+ const std::string& last_modified,
+ const std::string& etag,
+ InterruptReason reason)
: path(path),
url(url),
referrer_url(referrer),
@@ -34,7 +41,12 @@ DownloadPersistentStoreInfo::DownloadPersistentStoreInfo(
total_bytes(total),
state(download_state),
db_handle(handle),
- opened(download_opened) {
+ opened(download_opened),
+ local_id(local_id),
+ hash(hash),
+ last_modified_time(last_modified),
+ etag(etag),
+ last_reason(reason) {
}
DownloadPersistentStoreInfo::~DownloadPersistentStoreInfo() {

Powered by Google App Engine
This is Rietveld 408576698