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

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

Issue 2176013002: Add support for OfflinePagesDownloadBridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback and tests. 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/offline_pages/downloads/download_ui_item.h"
6
7 #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.
8
9 namespace offline_pages {
10
11 DownloadUIItem::DownloadUIItem()
12 : total_bytes(0) {
13 }
14
15 DownloadUIItem::DownloadUIItem(const OfflinePageItem& page)
16 : guid(page.client_id.id),
17 url(page.url),
18 target_path(page.file_path),
19 start_time(page.creation_time),
20 total_bytes(page.file_size) {}
21
22 DownloadUIItem::~DownloadUIItem() {
23 }
24
25 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698