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

Unified Diff: components/offline_pages/downloads/download_ui_item.cc

Issue 2260963003: [Offline pages] Enabling notifications for pages saved later (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing missed TODO 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/offline_pages/downloads/download_ui_item.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/downloads/download_ui_item.cc
diff --git a/components/offline_pages/downloads/download_ui_item.cc b/components/offline_pages/downloads/download_ui_item.cc
index df8fd133c1e2f921368bbc128c8ae2d3392e3dab..13af20ba27cdbf19a5af7c43d0ae0342c25bbf2b 100644
--- a/components/offline_pages/downloads/download_ui_item.cc
+++ b/components/offline_pages/downloads/download_ui_item.cc
@@ -4,6 +4,9 @@
#include "components/offline_pages/downloads/download_ui_item.h"
+#include "components/offline_pages/background/save_page_request.h"
+#include "components/offline_pages/offline_page_item.h"
+
namespace offline_pages {
DownloadUIItem::DownloadUIItem()
@@ -18,9 +21,16 @@ DownloadUIItem::DownloadUIItem(const OfflinePageItem& page)
start_time(page.creation_time),
total_bytes(page.file_size) {}
+DownloadUIItem::DownloadUIItem(const SavePageRequest& request)
+ : guid(request.client_id().id),
+ url(request.url()),
+ start_time(request.creation_time()),
+ total_bytes(-1L) {}
+
DownloadUIItem::DownloadUIItem(const DownloadUIItem& other)
: guid(other.guid),
url(other.url),
+ title(other.title),
target_path(other.target_path),
start_time(other.start_time),
total_bytes(other.total_bytes) {}
« no previous file with comments | « components/offline_pages/downloads/download_ui_item.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698