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

Side by Side Diff: components/download/internal/download_service_impl.cc

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 unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « components/download/internal/download_service_impl.h ('k') | components/download/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698