Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Unified Diff: components/offline_pages/downloads/download_ui_item.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index 13af20ba27cdbf19a5af7c43d0ae0342c25bbf2b..0000000000000000000000000000000000000000
--- a/components/offline_pages/downloads/download_ui_item.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// 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 "components/offline_pages/background/save_page_request.h"
-#include "components/offline_pages/offline_page_item.h"
-
-namespace offline_pages {
-
-DownloadUIItem::DownloadUIItem()
- : total_bytes(0) {
-}
-
-DownloadUIItem::DownloadUIItem(const OfflinePageItem& page)
- : guid(page.client_id.id),
- url(page.url),
- title(page.title),
- target_path(page.file_path),
- 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) {}
-
-DownloadUIItem::~DownloadUIItem() {
-}
-
-} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698