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 <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_id.h" | 17 #include "content/public/browser/download_id.h" |
18 #include "content/public/browser/download_save_info.h" | 18 #include "content/public/browser/download_save_info.h" |
19 #include "content/public/common/page_transition_types.h" | 19 #include "content/public/common/page_transition_types.h" |
20 #include "googleurl/src/gurl.h" | |
21 #include "net/base/net_log.h" | 20 #include "net/base/net_log.h" |
| 21 #include "url/gurl.h" |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 | 24 |
25 // 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 |
26 // want to pass |DownloadItem|s between threads. | 26 // want to pass |DownloadItem|s between threads. |
27 struct CONTENT_EXPORT DownloadCreateInfo { | 27 struct CONTENT_EXPORT DownloadCreateInfo { |
28 DownloadCreateInfo(const base::Time& start_time, | 28 DownloadCreateInfo(const base::Time& start_time, |
29 int64 total_bytes, | 29 int64 total_bytes, |
30 const net::BoundNetLog& bound_net_log, | 30 const net::BoundNetLog& bound_net_log, |
31 bool has_user_gesture, | 31 bool has_user_gesture, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // download item's. | 92 // download item's. |
93 const net::BoundNetLog request_bound_net_log; | 93 const net::BoundNetLog request_bound_net_log; |
94 | 94 |
95 private: | 95 private: |
96 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); | 96 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace content | 99 } // namespace content |
100 | 100 |
101 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 101 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
OLD | NEW |