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 |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 | 23 |
24 // Used for informing the download manager of a new download, since we don't | 24 // Used for informing the download manager of a new download, since we don't |
25 // want to pass |DownloadItem|s between threads. | 25 // want to pass |DownloadItem|s between threads. |
26 struct CONTENT_EXPORT DownloadCreateInfo { | 26 struct CONTENT_EXPORT DownloadCreateInfo { |
27 DownloadCreateInfo(const base::Time& start_time, | 27 DownloadCreateInfo(const base::Time& start_time, |
28 int64 total_bytes, | 28 int64 total_bytes, |
29 const net::BoundNetLog& bound_net_log, | 29 const net::BoundNetLog& bound_net_log, |
30 bool has_user_gesture, | 30 bool has_user_gesture, |
31 PageTransition transition_type); | 31 PageTransition transition_type, |
| 32 scoped_ptr<DownloadSaveInfo> save_info); |
32 DownloadCreateInfo(); | 33 DownloadCreateInfo(); |
33 ~DownloadCreateInfo(); | 34 ~DownloadCreateInfo(); |
34 | 35 |
35 std::string DebugString() const; | 36 std::string DebugString() const; |
36 | 37 |
37 // The URL from which we are downloading. This is the final URL after any | 38 // The URL from which we are downloading. This is the final URL after any |
38 // redirection by the server for |url_chain|. | 39 // redirection by the server for |url_chain|. |
39 const GURL& url() const; | 40 const GURL& url() const; |
40 | 41 |
41 // The chain of redirects that leading up to and including the final URL. | 42 // The chain of redirects that leading up to and including the final URL. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // download item's. | 92 // download item's. |
92 const net::BoundNetLog request_bound_net_log; | 93 const net::BoundNetLog request_bound_net_log; |
93 | 94 |
94 private: | 95 private: |
95 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); | 96 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); |
96 }; | 97 }; |
97 | 98 |
98 } // namespace content | 99 } // namespace content |
99 | 100 |
100 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 101 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
OLD | NEW |