| 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_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_ |
| OLD | NEW |