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

Side by Side Diff: components/download/internal/test/empty_client.h

Issue 2895953004: Add initial Controller to DownloadService (Closed)
Patch Set: Rebased Created 3 years, 6 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_TEST_EMPTY_CLIENT_H_
6 #define COMPONENTS_DOWNLOAD_INTERNAL_TEST_EMPTY_CLIENT_H_
7
8 #include "base/macros.h"
9 #include "components/download/public/client.h"
10
11 namespace download {
12 namespace test {
13
14 class EmptyClient : public Client {
15 public:
16 EmptyClient() = default;
17 ~EmptyClient() override = default;
18
19 // Client implementation.
20 void OnServiceInitialized(
21 const std::vector<std::string>& outstanding_download_guids) override;
22 ShouldDownload OnDownloadStarted(
23 const std::string& guid,
24 const std::vector<GURL>& url_chain,
25 const scoped_refptr<const net::HttpResponseHeaders>& headers) override;
26 void OnDownloadUpdated(const std::string& guid,
27 uint64_t bytes_downloaded) override;
28 void OnDownloadFailed(const std::string& guid) override;
29 void OnDownloadTimedOut(const std::string& guid) override;
30 void OnDownloadAborted(const std::string& guid) override;
31 void OnDownloadSucceeded(const std::string& guid,
32 const base::FilePath& path,
33 uint64_t size) override;
34
35 private:
36 DISALLOW_COPY_AND_ASSIGN(EmptyClient);
37 };
38
39 } // namespace test
40 } // namespace download
41
42 #endif // COMPONENTS_DOWNLOAD_INTERNAL_TEST_EMPTY_CLIENT_H_
OLDNEW
« no previous file with comments | « components/download/internal/test/BUILD.gn ('k') | components/download/internal/test/empty_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698