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 "components/update_client/update_client.h" | 8 #include "components/update_client/update_client.h" |
9 | 9 |
10 #include <queue> | 10 #include <queue> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void Install(const std::string& id, | 46 void Install(const std::string& id, |
47 const CrxDataCallback& crx_data_callback, | 47 const CrxDataCallback& crx_data_callback, |
48 const CompletionCallback& completion_callback) override; | 48 const CompletionCallback& completion_callback) override; |
49 void Update(const std::vector<std::string>& ids, | 49 void Update(const std::vector<std::string>& ids, |
50 const CrxDataCallback& crx_data_callback, | 50 const CrxDataCallback& crx_data_callback, |
51 const CompletionCallback& completion_callback) override; | 51 const CompletionCallback& completion_callback) override; |
52 bool GetCrxUpdateState(const std::string& id, | 52 bool GetCrxUpdateState(const std::string& id, |
53 CrxUpdateItem* update_item) const override; | 53 CrxUpdateItem* update_item) const override; |
54 bool IsUpdating(const std::string& id) const override; | 54 bool IsUpdating(const std::string& id) const override; |
55 void Stop() override; | 55 void Stop() override; |
| 56 void SendUninstallPing(const std::string& id, |
| 57 const Version& version, |
| 58 int reason) override; |
56 | 59 |
57 private: | 60 private: |
58 ~UpdateClientImpl() override; | 61 ~UpdateClientImpl() override; |
59 | 62 |
60 void RunTask(scoped_ptr<Task> task); | 63 void RunTask(scoped_ptr<Task> task); |
61 void OnTaskComplete(const CompletionCallback& completion_callback, | 64 void OnTaskComplete(const CompletionCallback& completion_callback, |
62 Task* task, | 65 Task* task, |
63 int error); | 66 int error); |
64 | 67 |
65 void NotifyObservers(Observer::Events event, const std::string& id); | 68 void NotifyObservers(Observer::Events event, const std::string& id); |
(...skipping 23 matching lines...) Expand all Loading... |
89 scoped_ptr<UpdateEngine> update_engine_; | 92 scoped_ptr<UpdateEngine> update_engine_; |
90 | 93 |
91 base::ObserverList<Observer> observer_list_; | 94 base::ObserverList<Observer> observer_list_; |
92 | 95 |
93 DISALLOW_COPY_AND_ASSIGN(UpdateClientImpl); | 96 DISALLOW_COPY_AND_ASSIGN(UpdateClientImpl); |
94 }; | 97 }; |
95 | 98 |
96 } // namespace update_client | 99 } // namespace update_client |
97 | 100 |
98 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ | 101 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ |
OLD | NEW |