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

Unified Diff: content/browser/download/download_create_info.h

Issue 148133007: [Downloads] Always call DM::StartDownload() for explicit downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
Index: content/browser/download/download_create_info.h
diff --git a/content/browser/download/download_create_info.h b/content/browser/download/download_create_info.h
index e032fbf293d874245faa2b7c87e70d2950b00b3b..886fe266cdc0bb12eb4628ce704f2730b5312ee5 100644
--- a/content/browser/download/download_create_info.h
+++ b/content/browser/download/download_create_info.h
@@ -14,6 +14,7 @@
#include "content/browser/download/download_file.h"
#include "content/browser/download/download_request_handle.h"
#include "content/common/content_export.h"
+#include "content/public/browser/download_interrupt_reasons.h"
#include "content/public/browser/download_save_info.h"
#include "content/public/common/page_transition_types.h"
#include "net/base/net_log.h"
@@ -88,6 +89,10 @@ struct CONTENT_EXPORT DownloadCreateInfo {
// The handle to the URLRequest sourcing this download.
DownloadRequestHandle request_handle;
+ // Contains the download interrupt reason if the download started in a failed
+ // state. Otherwise contains DOWNLOAD_INTERRUPT_REASON_NONE.
+ DownloadInterruptReason interrupt_reason;
+
// The request's |BoundNetLog|, for "source_dependency" linking with the
// download item's.
const net::BoundNetLog request_bound_net_log;

Powered by Google App Engine
This is Rietveld 408576698