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

Unified Diff: components/download/internal/download_service_impl.h

Issue 2866483002: Configuration for download service. (Closed)
Patch Set: Work on reviews. 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/config.cc ('k') | components/download/internal/download_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/download/internal/download_service_impl.h
diff --git a/components/download/internal/download_service_impl.h b/components/download/internal/download_service_impl.h
index e54ab3e64ff9a18640c4b5892b2dcce7dff7be72..319aea1976b78b2692419696e30937540185bc85 100644
--- a/components/download/internal/download_service_impl.h
+++ b/components/download/internal/download_service_impl.h
@@ -5,9 +5,11 @@
#ifndef COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_SERVICE_IMPL_H_
#define COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_SERVICE_IMPL_H_
+#include <memory>
#include <string>
#include "base/macros.h"
+#include "components/download/internal/config.h"
#include "components/download/public/download_service.h"
namespace download {
@@ -18,7 +20,7 @@ struct SchedulingParams;
// The internal implementation of the DownloadService.
class DownloadServiceImpl : public DownloadService {
public:
- DownloadServiceImpl();
+ DownloadServiceImpl(std::unique_ptr<Configuration> config);
~DownloadServiceImpl() override;
// DownloadService implementation.
@@ -30,6 +32,8 @@ class DownloadServiceImpl : public DownloadService {
const SchedulingParams& params) override;
private:
+ std::unique_ptr<Configuration> config_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadServiceImpl);
};
« no previous file with comments | « components/download/internal/config.cc ('k') | components/download/internal/download_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698