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

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

Issue 2851303003: Add the download component and initial setup (Closed)
Patch Set: Addressed comments 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
(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_
OLDNEW
« no previous file with comments | « components/download/internal/DEPS ('k') | components/download/internal/download_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698