Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 // DownloadItem fields | 39 // DownloadItem fields |
| 40 // The path where we want to save the download file. | 40 // The path where we want to save the download file. |
| 41 FilePath path; | 41 FilePath path; |
| 42 | 42 |
| 43 // 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. |
| 44 std::vector<GURL> url_chain; | 44 std::vector<GURL> url_chain; |
| 45 | 45 |
| 46 // The URL that referred us. | 46 // The URL that referred us. |
| 47 GURL referrer_url; | 47 GURL referrer_url; |
| 48 | 48 |
| 49 // The default path for the download (may be overridden). | |
| 50 FilePath suggested_path; | |
|
sadrul
2011/07/24 21:36:32
Removed because this is just not used anywhere.
| |
| 51 | |
| 52 // A number that should be added to the suggested path to make it unique. | 49 // A number that should be added to the suggested path to make it unique. |
| 53 // 0 means no number should be appended. Not actually stored in the db. | 50 // 0 means no number should be appended. Not actually stored in the db. |
| 54 int path_uniquifier; | 51 int path_uniquifier; |
| 55 | 52 |
| 56 // The time when the download started. | 53 // The time when the download started. |
| 57 base::Time start_time; | 54 base::Time start_time; |
| 58 | 55 |
| 59 // The number of bytes that have been received. | 56 // The number of bytes that have been received. |
| 60 int64 received_bytes; | 57 int64 received_bytes; |
| 61 | 58 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 | 100 |
| 104 // The charset of the referring page where the download request comes from. | 101 // The charset of the referring page where the download request comes from. |
| 105 // It's used to construct a suggested filename. | 102 // It's used to construct a suggested filename. |
| 106 std::string referrer_charset; | 103 std::string referrer_charset; |
| 107 | 104 |
| 108 // The download file save info. | 105 // The download file save info. |
| 109 DownloadSaveInfo save_info; | 106 DownloadSaveInfo save_info; |
| 110 }; | 107 }; |
| 111 | 108 |
| 112 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 109 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
| OLD | NEW |