| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHECKER_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ |
| 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 PersistedData* persistent); | 35 PersistedData* persistent); |
| 36 | 36 |
| 37 virtual ~UpdateChecker() {} | 37 virtual ~UpdateChecker() {} |
| 38 | 38 |
| 39 // Initiates an update check for the |items_to_check|. |additional_attributes| | 39 // Initiates an update check for the |items_to_check|. |additional_attributes| |
| 40 // provides a way to customize the <request> element. This value is inserted | 40 // provides a way to customize the <request> element. This value is inserted |
| 41 // as-is, therefore it must be well-formed as an XML attribute string. | 41 // as-is, therefore it must be well-formed as an XML attribute string. |
| 42 virtual bool CheckForUpdates( | 42 virtual bool CheckForUpdates( |
| 43 const std::vector<CrxUpdateItem*>& items_to_check, | 43 const std::vector<CrxUpdateItem*>& items_to_check, |
| 44 const std::string& additional_attributes, | 44 const std::string& additional_attributes, |
| 45 bool enabled_component_updates, |
| 45 const UpdateCheckCallback& update_check_callback) = 0; | 46 const UpdateCheckCallback& update_check_callback) = 0; |
| 46 | 47 |
| 47 static std::unique_ptr<UpdateChecker> Create( | 48 static std::unique_ptr<UpdateChecker> Create( |
| 48 const scoped_refptr<Configurator>& config, | 49 const scoped_refptr<Configurator>& config, |
| 49 PersistedData* persistent); | 50 PersistedData* persistent); |
| 50 | 51 |
| 51 protected: | 52 protected: |
| 52 UpdateChecker() {} | 53 UpdateChecker() {} |
| 53 | 54 |
| 54 private: | 55 private: |
| 55 DISALLOW_COPY_AND_ASSIGN(UpdateChecker); | 56 DISALLOW_COPY_AND_ASSIGN(UpdateChecker); |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 } // namespace update_client | 59 } // namespace update_client |
| 59 | 60 |
| 60 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ | 61 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ |
| OLD | NEW |