OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Download creation struct used for querying the history service. | 5 // Download creation struct used for querying the history service. |
6 | 6 |
7 #ifndef CHROME_BROWSER_HISTORY_DOWNLOAD_CREATE_INFO_H_ | 7 #ifndef CHROME_BROWSER_HISTORY_DOWNLOAD_CREATE_INFO_H_ |
8 #define CHROME_BROWSER_HISTORY_DOWNLOAD_CREATE_INFO_H_ | 8 #define CHROME_BROWSER_HISTORY_DOWNLOAD_CREATE_INFO_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 int32 state, | 29 int32 state, |
30 int32 download_id, | 30 int32 download_id, |
31 bool has_user_gesture); | 31 bool has_user_gesture); |
32 DownloadCreateInfo(); | 32 DownloadCreateInfo(); |
33 ~DownloadCreateInfo(); | 33 ~DownloadCreateInfo(); |
34 | 34 |
35 std::string DebugString() const; | 35 std::string DebugString() const; |
36 | 36 |
37 // DownloadItem fields | 37 // DownloadItem fields |
38 FilePath path; | 38 FilePath path; |
| 39 // The up-to-date URL that could be updated due to redirection. |
39 GURL url; | 40 GURL url; |
| 41 // The original URL before any redirection. |
| 42 GURL original_url; |
40 GURL referrer_url; | 43 GURL referrer_url; |
41 FilePath suggested_path; | 44 FilePath suggested_path; |
42 // A number that should be added to the suggested path to make it unique. | 45 // A number that should be added to the suggested path to make it unique. |
43 // 0 means no number should be appended. Not actually stored in the db. | 46 // 0 means no number should be appended. Not actually stored in the db. |
44 int path_uniquifier; | 47 int path_uniquifier; |
45 base::Time start_time; | 48 base::Time start_time; |
46 int64 received_bytes; | 49 int64 received_bytes; |
47 int64 total_bytes; | 50 int64 total_bytes; |
48 int32 state; | 51 int32 state; |
49 int32 download_id; | 52 int32 download_id; |
(...skipping 21 matching lines...) Expand all Loading... |
71 // Whether this download is for extension install or not. | 74 // Whether this download is for extension install or not. |
72 bool is_extension_install; | 75 bool is_extension_install; |
73 // The charset of the referring page where the download request comes from. | 76 // The charset of the referring page where the download request comes from. |
74 // It's used to construct a suggested filename. | 77 // It's used to construct a suggested filename. |
75 std::string referrer_charset; | 78 std::string referrer_charset; |
76 // The download file save info. | 79 // The download file save info. |
77 DownloadSaveInfo save_info; | 80 DownloadSaveInfo save_info; |
78 }; | 81 }; |
79 | 82 |
80 #endif // CHROME_BROWSER_HISTORY_DOWNLOAD_CREATE_INFO_H_ | 83 #endif // CHROME_BROWSER_HISTORY_DOWNLOAD_CREATE_INFO_H_ |
OLD | NEW |