| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // SHA256 hash of the CRX's public key. | 196 // SHA256 hash of the CRX's public key. |
| 197 std::vector<uint8_t> pk_hash; | 197 std::vector<uint8_t> pk_hash; |
| 198 scoped_refptr<CrxInstaller> installer; | 198 scoped_refptr<CrxInstaller> installer; |
| 199 | 199 |
| 200 // The current version if the CRX is updated. Otherwise, "0" or "0.0" if | 200 // The current version if the CRX is updated. Otherwise, "0" or "0.0" if |
| 201 // the CRX is installed. | 201 // the CRX is installed. |
| 202 Version version; | 202 Version version; |
| 203 | 203 |
| 204 std::string fingerprint; // Optional. | 204 std::string fingerprint; // Optional. |
| 205 std::string name; // Optional. | 205 std::string name; // Optional. |
| 206 std::vector<std::string> handled_mime_types; |
| 206 | 207 |
| 207 // Optional. | 208 // Optional. |
| 208 // Valid values for the name part of an attribute match | 209 // Valid values for the name part of an attribute match |
| 209 // ^[-_a-zA-Z0-9]{1,256}$ and valid values the value part of an attribute | 210 // ^[-_a-zA-Z0-9]{1,256}$ and valid values the value part of an attribute |
| 210 // match ^[-.,;+_=a-zA-Z0-9]{0,256}$ . | 211 // match ^[-.,;+_=a-zA-Z0-9]{0,256}$ . |
| 211 InstallerAttributes installer_attributes; | 212 InstallerAttributes installer_attributes; |
| 212 | 213 |
| 213 // Specifies that the CRX can be background-downloaded in some cases. | 214 // Specifies that the CRX can be background-downloaded in some cases. |
| 214 // The default for this value is |true|. | 215 // The default for this value is |true|. |
| 215 bool allows_background_download; | 216 bool allows_background_download; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 scoped_refptr<UpdateClient> UpdateClientFactory( | 343 scoped_refptr<UpdateClient> UpdateClientFactory( |
| 343 const scoped_refptr<Configurator>& config); | 344 const scoped_refptr<Configurator>& config); |
| 344 | 345 |
| 345 // This must be called prior to the construction of any Configurator that | 346 // This must be called prior to the construction of any Configurator that |
| 346 // contains a PrefService. | 347 // contains a PrefService. |
| 347 void RegisterPrefs(PrefRegistrySimple* registry); | 348 void RegisterPrefs(PrefRegistrySimple* registry); |
| 348 | 349 |
| 349 } // namespace update_client | 350 } // namespace update_client |
| 350 | 351 |
| 351 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ | 352 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ |
| OLD | NEW |