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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "content/browser/download/download_file.h" 14 #include "content/browser/download/download_file.h"
15 #include "content/browser/download/download_request_handle.h" 15 #include "content/browser/download/download_request_handle.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/public/browser/download_interrupt_reasons.h"
17 #include "content/public/browser/download_save_info.h" 18 #include "content/public/browser/download_save_info.h"
18 #include "content/public/common/page_transition_types.h" 19 #include "content/public/common/page_transition_types.h"
19 #include "net/base/net_log.h" 20 #include "net/base/net_log.h"
20 #include "url/gurl.h" 21 #include "url/gurl.h"
21 22
22 namespace content { 23 namespace content {
23 24
24 // Used for informing the download manager of a new download, since we don't 25 // Used for informing the download manager of a new download, since we don't
25 // want to pass |DownloadItem|s between threads. 26 // want to pass |DownloadItem|s between threads.
26 struct CONTENT_EXPORT DownloadCreateInfo { 27 struct CONTENT_EXPORT DownloadCreateInfo {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // The download file save info. 82 // The download file save info.
82 scoped_ptr<DownloadSaveInfo> save_info; 83 scoped_ptr<DownloadSaveInfo> save_info;
83 84
84 // The remote IP address where the download was fetched from. Copied from 85 // The remote IP address where the download was fetched from. Copied from
85 // UrlRequest::GetSocketAddress(). 86 // UrlRequest::GetSocketAddress().
86 std::string remote_address; 87 std::string remote_address;
87 88
88 // The handle to the URLRequest sourcing this download. 89 // The handle to the URLRequest sourcing this download.
89 DownloadRequestHandle request_handle; 90 DownloadRequestHandle request_handle;
90 91
92 // Contains the download interrupt reason if the download started in a failed
93 // state. Otherwise contains DOWNLOAD_INTERRUPT_REASON_NONE.
94 DownloadInterruptReason interrupt_reason;
95
91 // The request's |BoundNetLog|, for "source_dependency" linking with the 96 // The request's |BoundNetLog|, for "source_dependency" linking with the
92 // download item's. 97 // download item's.
93 const net::BoundNetLog request_bound_net_log; 98 const net::BoundNetLog request_bound_net_log;
94 99
95 private: 100 private:
96 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); 101 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo);
97 }; 102 };
98 103
99 } // namespace content 104 } // namespace content
100 105
101 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 106 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698