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_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ |
6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 const CrxDataCallback& crx_data_callback, | 321 const CrxDataCallback& crx_data_callback, |
322 const Callback& callback) = 0; | 322 const Callback& callback) = 0; |
323 | 323 |
324 // Sends an uninstall ping for the CRX identified by |id| and |version|. The | 324 // Sends an uninstall ping for the CRX identified by |id| and |version|. The |
325 // |reason| parameter is defined by the caller. The current implementation of | 325 // |reason| parameter is defined by the caller. The current implementation of |
326 // this function only sends a best-effort, fire-and-forget ping. It has no | 326 // this function only sends a best-effort, fire-and-forget ping. It has no |
327 // other side effects regarding installs or updates done through an instance | 327 // other side effects regarding installs or updates done through an instance |
328 // of this class. | 328 // of this class. |
329 virtual void SendUninstallPing(const std::string& id, | 329 virtual void SendUninstallPing(const std::string& id, |
330 const base::Version& version, | 330 const base::Version& version, |
331 int reason) = 0; | 331 int reason, |
| 332 const Callback& callback) = 0; |
332 | 333 |
333 // Returns status details about a CRX update. The function returns true in | 334 // Returns status details about a CRX update. The function returns true in |
334 // case of success and false in case of errors, such as |id| was | 335 // case of success and false in case of errors, such as |id| was |
335 // invalid or not known. | 336 // invalid or not known. |
336 virtual bool GetCrxUpdateState(const std::string& id, | 337 virtual bool GetCrxUpdateState(const std::string& id, |
337 CrxUpdateItem* update_item) const = 0; | 338 CrxUpdateItem* update_item) const = 0; |
338 | 339 |
339 // Returns true if the |id| is found in any running task. | 340 // Returns true if the |id| is found in any running task. |
340 virtual bool IsUpdating(const std::string& id) const = 0; | 341 virtual bool IsUpdating(const std::string& id) const = 0; |
341 | 342 |
(...skipping 13 matching lines...) Expand all Loading... |
355 scoped_refptr<UpdateClient> UpdateClientFactory( | 356 scoped_refptr<UpdateClient> UpdateClientFactory( |
356 const scoped_refptr<Configurator>& config); | 357 const scoped_refptr<Configurator>& config); |
357 | 358 |
358 // This must be called prior to the construction of any Configurator that | 359 // This must be called prior to the construction of any Configurator that |
359 // contains a PrefService. | 360 // contains a PrefService. |
360 void RegisterPrefs(PrefRegistrySimple* registry); | 361 void RegisterPrefs(PrefRegistrySimple* registry); |
361 | 362 |
362 } // namespace update_client | 363 } // namespace update_client |
363 | 364 |
364 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ | 365 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ |
OLD | NEW |