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

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

Issue 11363222: Persist download interrupt reason, both target and current paths, and url_chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/public/browser/download_persistent_store_info.cc
diff --git a/content/public/browser/download_persistent_store_info.cc b/content/public/browser/download_persistent_store_info.cc
index 4ba5ffc4ff7951f8b80b175cf4e49a23c6139539..8958884601afc65093a11065f47ba3485ba642f0 100644
--- a/content/public/browser/download_persistent_store_info.cc
+++ b/content/public/browser/download_persistent_store_info.cc
@@ -10,29 +10,34 @@ DownloadPersistentStoreInfo::DownloadPersistentStoreInfo()
: received_bytes(0),
total_bytes(0),
state(DownloadItem::IN_PROGRESS),
+ interrupt_reason(DOWNLOAD_INTERRUPT_REASON_NONE),
db_handle(0),
opened(false) {
}
DownloadPersistentStoreInfo::DownloadPersistentStoreInfo(
- const FilePath& path,
- const GURL& url,
+ const FilePath& target_path,
+ const FilePath& current_path,
+ const std::vector<GURL>& url_chain,
const GURL& referrer,
const base::Time& start,
const base::Time& end,
int64 received,
int64 total,
DownloadItem::DownloadState download_state,
+ DownloadInterruptReason interrupt_reason,
int64 handle,
bool download_opened)
- : path(path),
- url(url),
+ : target_path(target_path),
+ current_path(current_path),
+ url_chain(url_chain),
referrer_url(referrer),
start_time(start),
end_time(end),
received_bytes(received),
total_bytes(total),
state(download_state),
+ interrupt_reason(interrupt_reason),
db_handle(handle),
opened(download_opened) {
}

Powered by Google App Engine
This is Rietveld 408576698