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> | |
| 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; | |
|
fgorski
2016/07/25 17:09:57
having an extra method: GetOfflineURL() might be h
Dmitry Titov
2016/07/26 00:41:25
I thought UI won't launch anything, instead they w
fgorski
2016/07/26 16:25:21
Acknowledged.
| |
| 31 | |
| 32 // Most often "multipart/related". | |
| 33 std::string mime_type; | |
|
fgorski
2016/07/25 17:09:57
Based on comment from Dan in my code, we don't nee
Dmitry Titov
2016/07/26 00:41:25
Removed, we might need it later (to be a package).
| |
| 34 | |
| 35 // The time when the offline archive was created. | |
| 36 base::Time start_time_ms; | |
|
fgorski
2016/07/25 17:09:57
if it is a base::Time, then _ms is not appropriate
Dmitry Titov
2016/07/26 00:41:25
Done.
| |
| 37 | |
| 38 // The size of the offline copy. | |
| 39 int64_t total_bytes; | |
| 40 }; | |
| 41 | |
| 42 } // namespace offline_pages | |
| 43 | |
| 44 #endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ | |
| OLD | NEW |