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