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

Unified Diff: chrome/browser/history/download_row.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: Merged to r180302 Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/download_row.h ('k') | chrome/browser/history/history_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/download_row.cc
diff --git a/chrome/browser/history/download_row.cc b/chrome/browser/history/download_row.cc
index d3b553b7c309c818860f5d229cc19a3bd744ab13..d59258c4bf5cfe2225c890f47fd1345504672143 100644
--- a/chrome/browser/history/download_row.cc
+++ b/chrome/browser/history/download_row.cc
@@ -10,29 +10,37 @@ DownloadRow::DownloadRow()
: received_bytes(0),
total_bytes(0),
state(content::DownloadItem::IN_PROGRESS),
+ danger_type(content::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS),
+ interrupt_reason(content::DOWNLOAD_INTERRUPT_REASON_NONE),
db_handle(0),
opened(false) {
}
DownloadRow::DownloadRow(
- const FilePath& path,
- const GURL& url,
+ const FilePath& current_path,
+ const FilePath& target_path,
+ const std::vector<GURL>& url_chain,
const GURL& referrer,
const base::Time& start,
const base::Time& end,
int64 received,
int64 total,
content::DownloadItem::DownloadState download_state,
+ content::DownloadDangerType danger_type,
+ content::DownloadInterruptReason interrupt_reason,
int64 handle,
bool download_opened)
- : path(path),
- url(url),
+ : current_path(current_path),
+ target_path(target_path),
+ url_chain(url_chain),
referrer_url(referrer),
start_time(start),
end_time(end),
received_bytes(received),
total_bytes(total),
state(download_state),
+ danger_type(danger_type),
+ interrupt_reason(interrupt_reason),
db_handle(handle),
opened(download_opened) {
}
« no previous file with comments | « chrome/browser/history/download_row.h ('k') | chrome/browser/history/history_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698