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

Side by Side Diff: components/offline_pages/downloads/download_ui_item.cc

Issue 2263753002: Add 'title' field to DownloadUIItem and thread through bridges to OfflinePageDownloadItem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback Created 4 years, 4 months 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 unified diff | Download patch
« no previous file with comments | « components/offline_pages/downloads/download_ui_item.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « components/offline_pages/downloads/download_ui_item.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698