| 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_ENGINE_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_ENGINE_H_ |
| 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_ENGINE_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_ENGINE_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 CrxDownloader::Factory crx_downloader_factory, | 107 CrxDownloader::Factory crx_downloader_factory, |
| 108 PingManager* ping_manager); | 108 PingManager* ping_manager); |
| 109 | 109 |
| 110 ~UpdateContext(); | 110 ~UpdateContext(); |
| 111 | 111 |
| 112 scoped_refptr<Configurator> config; | 112 scoped_refptr<Configurator> config; |
| 113 | 113 |
| 114 // True if this update has been initiated by the user. | 114 // True if this update has been initiated by the user. |
| 115 bool is_foreground; | 115 bool is_foreground; |
| 116 | 116 |
| 117 // True if the component updates are enabled in this context. |
| 118 const bool enabled_component_updates; |
| 119 |
| 117 // Contains the ids of all CRXs in this context. | 120 // Contains the ids of all CRXs in this context. |
| 118 const std::vector<std::string> ids; | 121 const std::vector<std::string> ids; |
| 119 | 122 |
| 120 // Called before an update check, when update metadata is needed. | 123 // Called before an update check, when update metadata is needed. |
| 121 const UpdateEngine::CrxDataCallback& crx_data_callback; | 124 const UpdateEngine::CrxDataCallback& crx_data_callback; |
| 122 | 125 |
| 123 // Called when there is a state change for any update in this context. | 126 // Called when there is a state change for any update in this context. |
| 124 const UpdateEngine::NotifyObserversCallback notify_observers_callback; | 127 const UpdateEngine::NotifyObserversCallback notify_observers_callback; |
| 125 | 128 |
| 126 // Called when the all updates associated with this context have completed. | 129 // Called when the all updates associated with this context have completed. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 148 // Contains the ids of the items to update. | 151 // Contains the ids of the items to update. |
| 149 std::queue<std::string> queue; | 152 std::queue<std::string> queue; |
| 150 | 153 |
| 151 // The time in seconds to wait until doing further update checks. | 154 // The time in seconds to wait until doing further update checks. |
| 152 int retry_after_sec_; | 155 int retry_after_sec_; |
| 153 }; | 156 }; |
| 154 | 157 |
| 155 } // namespace update_client | 158 } // namespace update_client |
| 156 | 159 |
| 157 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_ENGINE_H_ | 160 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_ENGINE_H_ |
| OLD | NEW |