| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "components/download/internal/download_service_impl.h" | 5 #include "components/download/internal/download_service_impl.h" |
| 6 | 6 |
| 7 namespace download { | 7 namespace download { |
| 8 | 8 |
| 9 // static | 9 // static |
| 10 DownloadService* DownloadService::Create( | 10 DownloadService* DownloadService::Create( |
| 11 const base::FilePath& storage_dir, | 11 const base::FilePath& storage_dir, |
| 12 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner) { | 12 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner) { |
| 13 return new DownloadServiceImpl(); | 13 return new DownloadServiceImpl(Configuration::CreateFromFinch()); |
| 14 } | 14 } |
| 15 | 15 |
| 16 DownloadServiceImpl::DownloadServiceImpl() = default; | 16 DownloadServiceImpl::DownloadServiceImpl(std::unique_ptr<Configuration> config) |
| 17 : config_(std::move(config)) {} |
| 18 |
| 17 DownloadServiceImpl::~DownloadServiceImpl() = default; | 19 DownloadServiceImpl::~DownloadServiceImpl() = default; |
| 18 | 20 |
| 19 void DownloadServiceImpl::StartDownload(const DownloadParams& download_params) { | 21 void DownloadServiceImpl::StartDownload(const DownloadParams& download_params) { |
| 20 } | 22 } |
| 21 void DownloadServiceImpl::PauseDownload(const std::string& guid) {} | 23 void DownloadServiceImpl::PauseDownload(const std::string& guid) {} |
| 22 void DownloadServiceImpl::ResumeDownload(const std::string& guid) {} | 24 void DownloadServiceImpl::ResumeDownload(const std::string& guid) {} |
| 23 void DownloadServiceImpl::CancelDownload(const std::string& guid) {} | 25 void DownloadServiceImpl::CancelDownload(const std::string& guid) {} |
| 24 void DownloadServiceImpl::ChangeDownloadCriteria( | 26 void DownloadServiceImpl::ChangeDownloadCriteria( |
| 25 const std::string& guid, | 27 const std::string& guid, |
| 26 const SchedulingParams& params) {} | 28 const SchedulingParams& params) {} |
| 27 | 29 |
| 28 } // namespace download | 30 } // namespace download |
| OLD | NEW |