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

Unified Diff: components/download/internal/entry.cc

Issue 2895953004: Add initial Controller to DownloadService (Closed)
Patch Set: Rebased Created 3 years, 7 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/download/internal/entry.h ('k') | components/download/internal/entry_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/download/internal/entry.cc
diff --git a/components/download/internal/entry.cc b/components/download/internal/entry.cc
index 56d819c39d8ddff020472169a73a617d611408d4..f68d5bf2eaa6afc7f474e06b6b96086ab7c27458 100644
--- a/components/download/internal/entry.cc
+++ b/components/download/internal/entry.cc
@@ -8,6 +8,13 @@ namespace download {
Entry::Entry() = default;
Entry::Entry(const Entry& other) = default;
+
+Entry::Entry(const DownloadParams& params)
+ : client(params.client),
+ guid(params.guid),
+ scheduling_params(params.scheduling_params),
+ request_params(params.request_params) {}
+
Entry::~Entry() = default;
} // namespace download
« no previous file with comments | « components/download/internal/entry.h ('k') | components/download/internal/entry_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698