| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 // Specifies that the CRX can be background-downloaded in some cases. | 213 // Specifies that the CRX can be background-downloaded in some cases. |
| 214 // The default for this value is |true|. | 214 // The default for this value is |true|. |
| 215 bool allows_background_download; | 215 bool allows_background_download; |
| 216 | 216 |
| 217 // Specifies that the update checks and pings associated with this component | 217 // Specifies that the update checks and pings associated with this component |
| 218 // require confidentiality. The default for this value is |true|. As a side | 218 // require confidentiality. The default for this value is |true|. As a side |
| 219 // note, the confidentiality of the downloads is enforced by the server, | 219 // note, the confidentiality of the downloads is enforced by the server, |
| 220 // which only returns secure download URLs in this case. | 220 // which only returns secure download URLs in this case. |
| 221 bool requires_network_encryption; | 221 bool requires_network_encryption; |
| 222 |
| 223 // True if the component allows enabling or disabling updates by group policy. |
| 224 // This member should be set to |false| for data, non-binary components, such |
| 225 // as CRLSet, Supervised User Whitelists, STH Set, Origin Trials, and File |
| 226 // Type Policies. |
| 227 bool supports_group_policy_enable_component_updates; |
| 222 }; | 228 }; |
| 223 | 229 |
| 224 // All methods are safe to call only from the browser's main thread. Once an | 230 // All methods are safe to call only from the browser's main thread. Once an |
| 225 // instance of this class is created, the reference to it must be released | 231 // instance of this class is created, the reference to it must be released |
| 226 // only after the thread pools of the browser process have been destroyed and | 232 // only after the thread pools of the browser process have been destroyed and |
| 227 // the browser process has gone single-threaded. | 233 // the browser process has gone single-threaded. |
| 228 class UpdateClient : public base::RefCounted<UpdateClient> { | 234 class UpdateClient : public base::RefCounted<UpdateClient> { |
| 229 public: | 235 public: |
| 230 using CrxDataCallback = | 236 using CrxDataCallback = |
| 231 base::Callback<void(const std::vector<std::string>& ids, | 237 base::Callback<void(const std::vector<std::string>& ids, |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 scoped_refptr<UpdateClient> UpdateClientFactory( | 348 scoped_refptr<UpdateClient> UpdateClientFactory( |
| 343 const scoped_refptr<Configurator>& config); | 349 const scoped_refptr<Configurator>& config); |
| 344 | 350 |
| 345 // This must be called prior to the construction of any Configurator that | 351 // This must be called prior to the construction of any Configurator that |
| 346 // contains a PrefService. | 352 // contains a PrefService. |
| 347 void RegisterPrefs(PrefRegistrySimple* registry); | 353 void RegisterPrefs(PrefRegistrySimple* registry); |
| 348 | 354 |
| 349 } // namespace update_client | 355 } // namespace update_client |
| 350 | 356 |
| 351 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ | 357 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ |
| OLD | NEW |