| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a7d9bd4e8f03cd8f6681c844c74e21c63ba5515c
|
| --- /dev/null
|
| +++ b/components/offline_pages/downloads/download_ui_item.cc
|
| @@ -0,0 +1,23 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "components/offline_pages/downloads/download_ui_item.h"
|
| +
|
| +namespace offline_pages {
|
| +
|
| +DownloadUIItem::DownloadUIItem()
|
| + : total_bytes(0) {
|
| +}
|
| +
|
| +DownloadUIItem::DownloadUIItem(const OfflinePageItem& page)
|
| + : guid(page.client_id.id),
|
| + url(page.url),
|
| + target_path(page.file_path),
|
| + start_time(page.creation_time),
|
| + total_bytes(page.file_size) {}
|
| +
|
| +DownloadUIItem::~DownloadUIItem() {
|
| +}
|
| +
|
| +} // namespace offline_pages
|
|
|