| Index: components/offline_pages/downloads/download_ui_item.cc
|
| diff --git a/components/offline_pages/downloads/download_ui_item.cc b/components/offline_pages/downloads/download_ui_item.cc
|
| index df8fd133c1e2f921368bbc128c8ae2d3392e3dab..13af20ba27cdbf19a5af7c43d0ae0342c25bbf2b 100644
|
| --- a/components/offline_pages/downloads/download_ui_item.cc
|
| +++ b/components/offline_pages/downloads/download_ui_item.cc
|
| @@ -4,6 +4,9 @@
|
|
|
| #include "components/offline_pages/downloads/download_ui_item.h"
|
|
|
| +#include "components/offline_pages/background/save_page_request.h"
|
| +#include "components/offline_pages/offline_page_item.h"
|
| +
|
| namespace offline_pages {
|
|
|
| DownloadUIItem::DownloadUIItem()
|
| @@ -18,9 +21,16 @@ DownloadUIItem::DownloadUIItem(const OfflinePageItem& page)
|
| start_time(page.creation_time),
|
| total_bytes(page.file_size) {}
|
|
|
| +DownloadUIItem::DownloadUIItem(const SavePageRequest& request)
|
| + : guid(request.client_id().id),
|
| + url(request.url()),
|
| + start_time(request.creation_time()),
|
| + total_bytes(-1L) {}
|
| +
|
| DownloadUIItem::DownloadUIItem(const DownloadUIItem& other)
|
| : guid(other.guid),
|
| url(other.url),
|
| + title(other.title),
|
| target_path(other.target_path),
|
| start_time(other.start_time),
|
| total_bytes(other.total_bytes) {}
|
|
|