| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include <string> |
| 11 |
| 12 #include "base/files/file_path.h" |
| 13 #include "base/time/time.h" |
| 14 #include "components/offline_pages/offline_page_item.h" |
| 15 #include "url/gurl.h" |
| 16 |
| 17 namespace offline_pages { |
| 18 |
| 19 struct DownloadUIItem { |
| 20 public: |
| 21 DownloadUIItem(); |
| 22 explicit DownloadUIItem(const OfflinePageItem& page); |
| 23 ~DownloadUIItem(); |
| 24 |
| 25 // Unique id. |
| 26 std::string guid; |
| 27 |
| 28 // The URL of the captured page. |
| 29 GURL url; |
| 30 |
| 31 // The file path to the archive with a local copy of the page. |
| 32 base::FilePath target_path; |
| 33 |
| 34 // The time when the offline archive was created. |
| 35 base::Time start_time; |
| 36 |
| 37 // The size of the offline copy. |
| 38 int64_t total_bytes; |
| 39 }; |
| 40 |
| 41 } // namespace offline_pages |
| 42 |
| 43 #endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ |
| OLD | NEW |