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

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

Issue 2866483002: Configuration for download service. (Closed)
Patch Set: Fix protection header comment. 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 #ifndef COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_SERVICE_IMPL_H_ 5 #ifndef COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_SERVICE_IMPL_H_
6 #define COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_SERVICE_IMPL_H_ 6 #define COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_SERVICE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/download/internal/config.h"
11 #include "components/download/public/download_service.h" 12 #include "components/download/public/download_service.h"
12 13
13 namespace download { 14 namespace download {
14 15
15 struct DownloadParams; 16 struct DownloadParams;
16 struct SchedulingParams; 17 struct SchedulingParams;
17 18
18 // The internal implementation of the DownloadService. 19 // The internal implementation of the DownloadService.
19 class DownloadServiceImpl : public DownloadService { 20 class DownloadServiceImpl : public DownloadService {
20 public: 21 public:
21 DownloadServiceImpl(); 22 DownloadServiceImpl();
22 ~DownloadServiceImpl() override; 23 ~DownloadServiceImpl() override;
23 24
24 // DownloadService implementation. 25 // DownloadService implementation.
25 void StartDownload(const DownloadParams& download_params) override; 26 void StartDownload(const DownloadParams& download_params) override;
26 void PauseDownload(const std::string& guid) override; 27 void PauseDownload(const std::string& guid) override;
27 void ResumeDownload(const std::string& guid) override; 28 void ResumeDownload(const std::string& guid) override;
28 void CancelDownload(const std::string& guid) override; 29 void CancelDownload(const std::string& guid) override;
29 void ChangeDownloadCriteria(const std::string& guid, 30 void ChangeDownloadCriteria(const std::string& guid,
30 const SchedulingParams& params) override; 31 const SchedulingParams& params) override;
31 32
32 private: 33 private:
34 Configuration config_;
David Trainor- moved to gerrit 2017/05/05 20:10:52 We should pass one in the constructor
xingliu 2017/05/05 22:55:03 Done.
35
33 DISALLOW_COPY_AND_ASSIGN(DownloadServiceImpl); 36 DISALLOW_COPY_AND_ASSIGN(DownloadServiceImpl);
34 }; 37 };
35 38
36 } // namespace download 39 } // namespace download
37 40
38 #endif // COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_SERVICE_IMPL_H_ 41 #endif // COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698