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

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: Rearranged structures for greater consistency. 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..d498800202e1cd95910fc1897291c418ccefccc3 100644
--- a/content/browser/download/download_persistent_store_info.cc
+++ b/content/browser/download/download_persistent_store_info.cc
@@ -11,11 +11,13 @@ DownloadPersistentStoreInfo::DownloadPersistentStoreInfo()
total_bytes(0),
state(0),
db_handle(0),
- opened(false) {
+ opened(false),
+ last_reason(DOWNLOAD_INTERRUPT_REASON_NONE) {
}
DownloadPersistentStoreInfo::DownloadPersistentStoreInfo(
const FilePath& path,
+ const FilePath& target,
const GURL& url,
const GURL& referrer,
const base::Time& start,
@@ -24,8 +26,13 @@ DownloadPersistentStoreInfo::DownloadPersistentStoreInfo(
int64 total,
int32 download_state,
int64 handle,
- bool download_opened)
+ bool download_opened,
+ const std::string& hash_state_pickle,
+ const std::string& last_modified,
+ const std::string& etag,
+ InterruptReason reason)
: path(path),
+ target_name(target),
url(url),
referrer_url(referrer),
start_time(start),
@@ -34,7 +41,11 @@ DownloadPersistentStoreInfo::DownloadPersistentStoreInfo(
total_bytes(total),
state(download_state),
db_handle(handle),
- opened(download_opened) {
+ opened(download_opened),
+ hash_state(hash_state_pickle),
+ last_modified_time(last_modified),
+ etag(etag),
+ last_reason(reason) {
}
DownloadPersistentStoreInfo::~DownloadPersistentStoreInfo() {

Powered by Google App Engine
This is Rietveld 408576698