| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_IMPROVED_COMPONENT_INSTALLER_H
_ |
| 6 #define CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_IMPROVED_COMPONENT_INSTALLER_H
_ |
| 7 |
| 8 #include <memory> |
| 9 #include <string> |
| 10 #include <vector> |
| 11 |
| 12 #include "base/feature_list.h" |
| 13 #include "components/component_updater/default_component_installer.h" |
| 14 |
| 15 class PrefRegistrySimple; |
| 16 class PrefService; |
| 17 |
| 18 namespace component_updater { |
| 19 |
| 20 class ComponentUpdateService; |
| 21 |
| 22 class RecoveryImprovedInstallerTraits : public ComponentInstallerTraits { |
| 23 public: |
| 24 explicit RecoveryImprovedInstallerTraits(PrefService* prefs); |
| 25 ~RecoveryImprovedInstallerTraits() override; |
| 26 |
| 27 private: |
| 28 friend class RecoveryImprovedInstallerTest; |
| 29 |
| 30 // ComponentInstallerTraits implementation. |
| 31 bool SupportsGroupPolicyEnabledComponentUpdates() const override; |
| 32 bool RequiresNetworkEncryption() const override; |
| 33 update_client::CrxInstaller::Result OnCustomInstall( |
| 34 const base::DictionaryValue& manifest, |
| 35 const base::FilePath& install_dir) override; |
| 36 bool VerifyInstallation(const base::DictionaryValue& manifest, |
| 37 const base::FilePath& install_dir) const override; |
| 38 void ComponentReady(const base::Version& version, |
| 39 const base::FilePath& install_dir, |
| 40 std::unique_ptr<base::DictionaryValue> manifest) override; |
| 41 base::FilePath GetRelativeInstallDir() const override; |
| 42 void GetHash(std::vector<uint8_t>* hash) const override; |
| 43 std::string GetName() const override; |
| 44 update_client::InstallerAttributes GetInstallerAttributes() const override; |
| 45 std::vector<std::string> GetMimeTypes() const override; |
| 46 |
| 47 PrefService* prefs_; |
| 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(RecoveryImprovedInstallerTraits); |
| 50 }; |
| 51 |
| 52 void RegisterRecoveryImprovedComponent(ComponentUpdateService* cus, |
| 53 PrefService* prefs); |
| 54 |
| 55 // Registers user preferences related to the recovery component. |
| 56 void RegisterPrefsForRecoveryImprovedComponent(PrefRegistrySimple* registry); |
| 57 |
| 58 } // namespace component_updater |
| 59 |
| 60 #endif // CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_IMPROVED_COMPONENT_INSTALLE
R_H_ |
| OLD | NEW |