| 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> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 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::BoundNetLog& bound_net_log, | 31 const net::BoundNetLog& bound_net_log, |
| 32 scoped_ptr<DownloadSaveInfo> save_info); | 32 scoped_ptr<DownloadSaveInfo> save_info); |
| 33 DownloadCreateInfo(); | 33 DownloadCreateInfo(); |
| 34 ~DownloadCreateInfo(); | 34 ~DownloadCreateInfo(); |
| 35 | 35 |
| 36 std::string DebugString() const; | |
| 37 | |
| 38 // The URL from which we are downloading. This is the final URL after any | 36 // The URL from which we are downloading. This is the final URL after any |
| 39 // redirection by the server for |url_chain|. | 37 // redirection by the server for |url_chain|. |
| 40 const GURL& url() const; | 38 const GURL& url() const; |
| 41 | 39 |
| 42 // The ID of the download. | 40 // The ID of the download. |
| 43 uint32_t download_id; | 41 uint32_t download_id; |
| 44 | 42 |
| 45 // The chain of redirects that leading up to and including the final URL. | 43 // The chain of redirects that leading up to and including the final URL. |
| 46 std::vector<GURL> url_chain; | 44 std::vector<GURL> url_chain; |
| 47 | 45 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // For continuing a download, the ETag of the file. | 106 // For continuing a download, the ETag of the file. |
| 109 std::string etag; | 107 std::string etag; |
| 110 | 108 |
| 111 private: | 109 private: |
| 112 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); | 110 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); |
| 113 }; | 111 }; |
| 114 | 112 |
| 115 } // namespace content | 113 } // namespace content |
| 116 | 114 |
| 117 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 115 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
| OLD | NEW |