summaryrefslogtreecommitdiff
path: root/chromium/content/browser/download/download_create_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/download/download_create_info.cc')
-rw-r--r--chromium/content/browser/download/download_create_info.cc21
1 files changed, 4 insertions, 17 deletions
diff --git a/chromium/content/browser/download/download_create_info.cc b/chromium/content/browser/download/download_create_info.cc
index c09d713aa97..92b15849b37 100644
--- a/chromium/content/browser/download/download_create_info.cc
+++ b/chromium/content/browser/download/download_create_info.cc
@@ -5,7 +5,6 @@
#include "content/browser/download/download_create_info.h"
#include <string>
-#include <utility>
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
@@ -13,36 +12,24 @@
namespace content {
DownloadCreateInfo::DownloadCreateInfo(const base::Time& start_time,
- int64_t total_bytes,
const net::BoundNetLog& bound_net_log,
scoped_ptr<DownloadSaveInfo> save_info)
- : start_time(start_time),
- total_bytes(total_bytes),
- download_id(DownloadItem::kInvalidId),
+ : download_id(DownloadItem::kInvalidId),
+ start_time(start_time),
+ total_bytes(0),
has_user_gesture(false),
transition_type(ui::PAGE_TRANSITION_LINK),
+ result(DOWNLOAD_INTERRUPT_REASON_NONE),
save_info(std::move(save_info)),
request_bound_net_log(bound_net_log) {}
DownloadCreateInfo::DownloadCreateInfo()
: DownloadCreateInfo(base::Time(),
- 0,
net::BoundNetLog(),
make_scoped_ptr(new DownloadSaveInfo)) {}
DownloadCreateInfo::~DownloadCreateInfo() {}
-std::string DownloadCreateInfo::DebugString() const {
- return base::StringPrintf(
- "{"
- " download_id = %u"
- " url = \"%s\""
- " request_handle = %s"
- " total_bytes = %" PRId64 " }",
- download_id, url().spec().c_str(), request_handle->DebugString().c_str(),
- total_bytes);
-}
-
const GURL& DownloadCreateInfo::url() const {
return url_chain.empty() ? GURL::EmptyGURL() : url_chain.back();
}