| 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 319aea1976b78b2692419696e30937540185bc85..e9f8e890cc042647868bf25365c0b1f692bc19cf 100644
|
| --- a/components/download/internal/download_service_impl.h
|
| +++ b/components/download/internal/download_service_impl.h
|
| @@ -9,21 +9,23 @@
|
| #include <string>
|
|
|
| #include "base/macros.h"
|
| -#include "components/download/internal/config.h"
|
| #include "components/download/public/download_service.h"
|
|
|
| namespace download {
|
|
|
| +class Controller;
|
| +
|
| struct DownloadParams;
|
| struct SchedulingParams;
|
|
|
| // The internal implementation of the DownloadService.
|
| class DownloadServiceImpl : public DownloadService {
|
| public:
|
| - DownloadServiceImpl(std::unique_ptr<Configuration> config);
|
| + DownloadServiceImpl(std::unique_ptr<Controller> controller);
|
| ~DownloadServiceImpl() override;
|
|
|
| // DownloadService implementation.
|
| + ServiceStatus GetStatus() override;
|
| void StartDownload(const DownloadParams& download_params) override;
|
| void PauseDownload(const std::string& guid) override;
|
| void ResumeDownload(const std::string& guid) override;
|
| @@ -32,7 +34,7 @@ class DownloadServiceImpl : public DownloadService {
|
| const SchedulingParams& params) override;
|
|
|
| private:
|
| - std::unique_ptr<Configuration> config_;
|
| + std::unique_ptr<Controller> controller_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(DownloadServiceImpl);
|
| };
|
|
|