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

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

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
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>
(...skipping 10 matching lines...) Expand all
21 DownloadUIItem(); 21 DownloadUIItem();
22 explicit DownloadUIItem(const OfflinePageItem& page); 22 explicit DownloadUIItem(const OfflinePageItem& page);
23 ~DownloadUIItem(); 23 ~DownloadUIItem();
24 24
25 // Unique id. 25 // Unique id.
26 std::string guid; 26 std::string guid;
27 27
28 // The URL of the captured page. 28 // The URL of the captured page.
29 GURL url; 29 GURL url;
30 30
31 // The Title of the captured page, if any. It can be empty string either
32 // because the page is not yet fully loaded, or because it doesn't have any.
33 base::string16 title;
34
31 // The file path to the archive with a local copy of the page. 35 // The file path to the archive with a local copy of the page.
32 base::FilePath target_path; 36 base::FilePath target_path;
33 37
34 // The time when the offline archive was created. 38 // The time when the offline archive was created.
35 base::Time start_time; 39 base::Time start_time;
36 40
37 // The size of the offline copy. 41 // The size of the offline copy.
38 int64_t total_bytes; 42 int64_t total_bytes;
39 }; 43 };
40 44
41 } // namespace offline_pages 45 } // namespace offline_pages
42 46
43 #endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_ 47 #endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_UI_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698