OLD | NEW |
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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "content/browser/download/download_file.h" | 16 #include "content/browser/download/download_file.h" |
17 #include "content/browser/download/download_request_handle.h" | 17 #include "content/browser/download/download_request_handle.h" |
18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
19 #include "content/public/browser/download_interrupt_reasons.h" | 19 #include "content/public/browser/download_interrupt_reasons.h" |
20 #include "content/public/browser/download_save_info.h" | 20 #include "content/public/browser/download_save_info.h" |
21 #include "net/log/net_log.h" | 21 #include "net/log/net_log_with_source.h" |
22 #include "ui/base/page_transition_types.h" | 22 #include "ui/base/page_transition_types.h" |
23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 | 26 |
27 // Used for informing the download manager of a new download, since we don't | 27 // Used for informing the download manager of a new download, since we don't |
28 // want to pass |DownloadItem|s between threads. | 28 // want to pass |DownloadItem|s between threads. |
29 struct CONTENT_EXPORT DownloadCreateInfo { | 29 struct CONTENT_EXPORT DownloadCreateInfo { |
30 DownloadCreateInfo(const base::Time& start_time, | 30 DownloadCreateInfo(const base::Time& start_time, |
31 const net::NetLogWithSource& net_log, | 31 const net::NetLogWithSource& net_log, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // For continuing a download, the ETag of the file. | 109 // For continuing a download, the ETag of the file. |
110 std::string etag; | 110 std::string etag; |
111 | 111 |
112 private: | 112 private: |
113 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); | 113 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); |
114 }; | 114 }; |
115 | 115 |
116 } // namespace content | 116 } // namespace content |
117 | 117 |
118 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 118 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
OLD | NEW |