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 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 struct CrxComponent { | 181 struct CrxComponent { |
182 CrxComponent(); | 182 CrxComponent(); |
183 ~CrxComponent(); | 183 ~CrxComponent(); |
184 | 184 |
185 // SHA256 hash of the CRX's public key. | 185 // SHA256 hash of the CRX's public key. |
186 std::vector<uint8_t> pk_hash; | 186 std::vector<uint8_t> pk_hash; |
187 scoped_refptr<CrxInstaller> installer; | 187 scoped_refptr<CrxInstaller> installer; |
188 | 188 |
189 // The current version if the CRX is updated. Otherwise, "0" or "0.0" if | 189 // The current version if the CRX is updated. Otherwise, "0" or "0.0" if |
190 // the CRX is installed. | 190 // the CRX is installed. |
191 base::Version version; | 191 Version version; |
192 | 192 |
193 std::string fingerprint; // Optional. | 193 std::string fingerprint; // Optional. |
194 std::string name; // Optional. | 194 std::string name; // Optional. |
195 | 195 |
196 // Specifies that the CRX can be background-downloaded in some cases. | 196 // Specifies that the CRX can be background-downloaded in some cases. |
197 // The default for this value is |true| and the value can be overriden at | 197 // The default for this value is |true| and the value can be overriden at |
198 // the registration time. This is a temporary change until the issue | 198 // the registration time. This is a temporary change until the issue |
199 // crbug/340448 is resolved. | 199 // crbug/340448 is resolved. |
200 bool allow_background_download; | 200 bool allow_background_download; |
201 }; | 201 }; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 virtual ~UpdateClient() {} | 292 virtual ~UpdateClient() {} |
293 }; | 293 }; |
294 | 294 |
295 // Creates an instance of the update client. | 295 // Creates an instance of the update client. |
296 scoped_refptr<UpdateClient> UpdateClientFactory( | 296 scoped_refptr<UpdateClient> UpdateClientFactory( |
297 const scoped_refptr<Configurator>& config); | 297 const scoped_refptr<Configurator>& config); |
298 | 298 |
299 } // namespace update_client | 299 } // namespace update_client |
300 | 300 |
301 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ | 301 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ |
OLD | NEW |