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

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

Issue 2239133002: [Offline pages] Downloads UI: Adding bridge for issuing notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@download-notifications
Patch Set: Minimizing the patch to handle direct WC capture on download button 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
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 #ifndef COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_
6 #define COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ 6 #define COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "components/offline_pages/offline_page_item.h" 14 #include "components/offline_pages/offline_page_item.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 namespace offline_pages { 17 namespace offline_pages {
18 18
19 struct DownloadUIItem { 19 struct DownloadUIItem {
20 public: 20 public:
21 DownloadUIItem(); 21 DownloadUIItem();
22 explicit DownloadUIItem(const OfflinePageItem& page); 22 explicit DownloadUIItem(const OfflinePageItem& page);
23 DownloadUIItem(const DownloadUIItem& other);
23 ~DownloadUIItem(); 24 ~DownloadUIItem();
24 25
25 // Unique id. 26 // Unique id.
26 std::string guid; 27 std::string guid;
27 28
28 // The URL of the captured page. 29 // The URL of the captured page.
29 GURL url; 30 GURL url;
30 31
31 // The file path to the archive with a local copy of the page. 32 // The file path to the archive with a local copy of the page.
32 base::FilePath target_path; 33 base::FilePath target_path;
33 34
34 // The time when the offline archive was created. 35 // The time when the offline archive was created.
35 base::Time start_time; 36 base::Time start_time;
36 37
37 // The size of the offline copy. 38 // The size of the offline copy.
38 int64_t total_bytes; 39 int64_t total_bytes;
39 }; 40 };
40 41
41 } // namespace offline_pages 42 } // namespace offline_pages
42 43
43 #endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ 44 #endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698