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 #include "components/offline_pages/downloads/download_ui_item.h" | 5 #include "components/offline_pages/downloads/download_ui_item.h" |
6 | 6 |
7 namespace offline_pages { | 7 namespace offline_pages { |
8 | 8 |
9 DownloadUIItem::DownloadUIItem() | 9 DownloadUIItem::DownloadUIItem() |
10 : total_bytes(0) { | 10 : total_bytes(0) { |
11 } | 11 } |
12 | 12 |
13 DownloadUIItem::DownloadUIItem(const OfflinePageItem& page) | 13 DownloadUIItem::DownloadUIItem(const OfflinePageItem& page) |
14 : guid(page.client_id.id), | 14 : guid(page.client_id.id), |
15 url(page.url), | 15 url(page.url), |
| 16 title(page.title), |
16 target_path(page.file_path), | 17 target_path(page.file_path), |
17 start_time(page.creation_time), | 18 start_time(page.creation_time), |
18 total_bytes(page.file_size) {} | 19 total_bytes(page.file_size) {} |
19 | 20 |
20 DownloadUIItem::~DownloadUIItem() { | 21 DownloadUIItem::~DownloadUIItem() { |
21 } | 22 } |
22 | 23 |
23 } // namespace offline_pages | 24 } // namespace offline_pages |
OLD | NEW |