OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_SERVICE_IMPL_H_ |
| 6 #define COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_SERVICE_IMPL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "components/download/public/download_service.h" |
| 12 |
| 13 namespace download { |
| 14 |
| 15 struct DownloadParams; |
| 16 struct SchedulingParams; |
| 17 |
| 18 // The internal implementation of the DownloadService. |
| 19 class DownloadServiceImpl : public DownloadService { |
| 20 public: |
| 21 DownloadServiceImpl(); |
| 22 ~DownloadServiceImpl() override; |
| 23 |
| 24 // DownloadService implementation. |
| 25 void StartDownload(const DownloadParams& download_params) override; |
| 26 void PauseDownload(const std::string& guid) override; |
| 27 void ResumeDownload(const std::string& guid) override; |
| 28 void CancelDownload(const std::string& guid) override; |
| 29 void ChangeDownloadCriteria(const std::string& guid, |
| 30 const SchedulingParams& params) override; |
| 31 |
| 32 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(DownloadServiceImpl); |
| 34 }; |
| 35 |
| 36 } // namespace download |
| 37 |
| 38 #endif // COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_SERVICE_IMPL_H_ |
OLD | NEW |