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

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

Issue 2176013002: Add support for OfflinePagesDownloadBridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More comments and compile fixes 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 #ifndef COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_
6 #define COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_
7
8 #include <stdint.h>
9
10 #include <string>
11
12 #include "base/files/file_path.h"
13 #include "base/time/time.h"
14 #include "components/offline_pages/offline_page_item.h"
15 #include "url/gurl.h"
16
17 namespace offline_pages {
18
19 struct DownloadUIItem {
20 public:
21 DownloadUIItem();
22 explicit DownloadUIItem(const OfflinePageItem& page);
23 ~DownloadUIItem();
24
25 // Unique id.
26 std::string guid;
27
28 // The URL of the captured page.
29 GURL url;
30
31 // The file path to the archive with a local copy of the page.
32 base::FilePath target_path;
33
34 // The time when the offline archive was created.
35 base::Time start_time;
36
37 // The size of the offline copy.
38 int64_t total_bytes;
39 };
40
41 } // namespace offline_pages
42
43 #endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698