| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ |
| 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
| 18 #include "components/update_client/crx_downloader.h" | 18 #include "components/update_client/crx_downloader.h" |
| 19 #include "components/update_client/update_checker.h" | 19 #include "components/update_client/update_checker.h" |
| 20 #include "components/update_client/update_client.h" | 20 #include "components/update_client/update_client.h" |
| 21 | 21 |
| 22 namespace base { | |
| 23 class SequencedTaskRunner; | |
| 24 class SingleThreadTaskRunner; | |
| 25 } // namespace base | |
| 26 | |
| 27 namespace update_client { | 22 namespace update_client { |
| 28 | 23 |
| 29 class Configurator; | 24 class Configurator; |
| 30 class PingManager; | 25 class PingManager; |
| 31 class Task; | 26 class Task; |
| 32 class UpdateEngine; | 27 class UpdateEngine; |
| 33 enum class Error; | 28 enum class Error; |
| 34 struct TaskContext; | |
| 35 | 29 |
| 36 class UpdateClientImpl : public UpdateClient { | 30 class UpdateClientImpl : public UpdateClient { |
| 37 public: | 31 public: |
| 38 UpdateClientImpl(const scoped_refptr<Configurator>& config, | 32 UpdateClientImpl(const scoped_refptr<Configurator>& config, |
| 39 std::unique_ptr<PingManager> ping_manager, | 33 std::unique_ptr<PingManager> ping_manager, |
| 40 UpdateChecker::Factory update_checker_factory, | 34 UpdateChecker::Factory update_checker_factory, |
| 41 CrxDownloader::Factory crx_downloader_factory); | 35 CrxDownloader::Factory crx_downloader_factory); |
| 42 | 36 |
| 43 // Overrides for UpdateClient. | 37 // Overrides for UpdateClient. |
| 44 void AddObserver(Observer* observer) override; | 38 void AddObserver(Observer* observer) override; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 std::unique_ptr<UpdateEngine> update_engine_; | 84 std::unique_ptr<UpdateEngine> update_engine_; |
| 91 | 85 |
| 92 base::ObserverList<Observer> observer_list_; | 86 base::ObserverList<Observer> observer_list_; |
| 93 | 87 |
| 94 DISALLOW_COPY_AND_ASSIGN(UpdateClientImpl); | 88 DISALLOW_COPY_AND_ASSIGN(UpdateClientImpl); |
| 95 }; | 89 }; |
| 96 | 90 |
| 97 } // namespace update_client | 91 } // namespace update_client |
| 98 | 92 |
| 99 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ | 93 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ |
| OLD | NEW |