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

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: Created 4 years, 5 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"
8
9 namespace {
10 const char kMimeType[] = "multipart/related";
11 }
12
13 namespace offline_pages {
14
15 DownloadUIItem::DownloadUIItem()
16 : mime_type(kMimeType),
17 total_bytes(0) {
18 }
19
20 DownloadUIItem::DownloadUIItem(const OfflinePageItem& page)
21 : guid(page.client_id.id),
22 url(page.url),
23 target_path(page.file_path),
24 mime_type(kMimeType),
25 start_time_ms(page.creation_time),
26 total_bytes(page.file_size) {}
27
28 DownloadUIItem::~DownloadUIItem() {
29 }
30
31 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698