| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 DownloadUIItem(); | 21 DownloadUIItem(); |
| 22 explicit DownloadUIItem(const OfflinePageItem& page); | 22 explicit DownloadUIItem(const OfflinePageItem& page); |
| 23 ~DownloadUIItem(); | 23 ~DownloadUIItem(); |
| 24 | 24 |
| 25 // Unique id. | 25 // Unique id. |
| 26 std::string guid; | 26 std::string guid; |
| 27 | 27 |
| 28 // The URL of the captured page. | 28 // The URL of the captured page. |
| 29 GURL url; | 29 GURL url; |
| 30 | 30 |
| 31 // The Title of the captured page, if any. It can be empty string either |
| 32 // because the page is not yet fully loaded, or because it doesn't have any. |
| 33 base::string16 title; |
| 34 |
| 31 // The file path to the archive with a local copy of the page. | 35 // The file path to the archive with a local copy of the page. |
| 32 base::FilePath target_path; | 36 base::FilePath target_path; |
| 33 | 37 |
| 34 // The time when the offline archive was created. | 38 // The time when the offline archive was created. |
| 35 base::Time start_time; | 39 base::Time start_time; |
| 36 | 40 |
| 37 // The size of the offline copy. | 41 // The size of the offline copy. |
| 38 int64_t total_bytes; | 42 int64_t total_bytes; |
| 39 }; | 43 }; |
| 40 | 44 |
| 41 } // namespace offline_pages | 45 } // namespace offline_pages |
| 42 | 46 |
| 43 #endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ | 47 #endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ |
| OLD | NEW |