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> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const Callback& callback) override; | 42 const Callback& callback) override; |
43 void Update(const std::vector<std::string>& ids, | 43 void Update(const std::vector<std::string>& ids, |
44 const CrxDataCallback& crx_data_callback, | 44 const CrxDataCallback& crx_data_callback, |
45 const Callback& callback) override; | 45 const Callback& callback) override; |
46 bool GetCrxUpdateState(const std::string& id, | 46 bool GetCrxUpdateState(const std::string& id, |
47 CrxUpdateItem* update_item) const override; | 47 CrxUpdateItem* update_item) const override; |
48 bool IsUpdating(const std::string& id) const override; | 48 bool IsUpdating(const std::string& id) const override; |
49 void Stop() override; | 49 void Stop() override; |
50 void SendUninstallPing(const std::string& id, | 50 void SendUninstallPing(const std::string& id, |
51 const base::Version& version, | 51 const base::Version& version, |
52 int reason) override; | 52 int reason, |
| 53 const Callback& callback) override; |
53 | 54 |
54 private: | 55 private: |
55 ~UpdateClientImpl() override; | 56 ~UpdateClientImpl() override; |
56 | 57 |
57 void RunTask(std::unique_ptr<Task> task); | 58 void RunTask(std::unique_ptr<Task> task); |
58 void OnTaskComplete(const Callback& callback, Task* task, Error error); | 59 void OnTaskComplete(const Callback& callback, Task* task, Error error); |
59 | 60 |
60 void NotifyObservers(Observer::Events event, const std::string& id); | 61 void NotifyObservers(Observer::Events event, const std::string& id); |
61 | 62 |
62 base::ThreadChecker thread_checker_; | 63 base::ThreadChecker thread_checker_; |
(...skipping 21 matching lines...) Expand all Loading... |
84 std::unique_ptr<UpdateEngine> update_engine_; | 85 std::unique_ptr<UpdateEngine> update_engine_; |
85 | 86 |
86 base::ObserverList<Observer> observer_list_; | 87 base::ObserverList<Observer> observer_list_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(UpdateClientImpl); | 89 DISALLOW_COPY_AND_ASSIGN(UpdateClientImpl); |
89 }; | 90 }; |
90 | 91 |
91 } // namespace update_client | 92 } // namespace update_client |
92 | 93 |
93 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ | 94 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ |
OLD | NEW |