Chromium Code Reviews| 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..2f82993fb46d52562fd26856f245a472332b43b1 |
| --- /dev/null |
| +++ b/components/offline_pages/downloads/download_ui_item.cc |
| @@ -0,0 +1,25 @@ |
| +// 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" |
| + |
| +#include "net/base/filename_util.h" |
|
fgorski
2016/07/26 16:25:21
I believe this is what is breaking the build. Good
Dmitry Titov
2016/07/26 19:56:48
Done.
|
| + |
| +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 |