| OLD | NEW |
| (Empty) | |
| 1 // Copyright 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_SSL_ERROR_ASSISTANT_COMPONENT_INSTALLER
_H_ |
| 6 #define CHROME_BROWSER_COMPONENT_UPDATER_SSL_ERROR_ASSISTANT_COMPONENT_INSTALLER
_H_ |
| 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 11 #include "base/macros.h" |
| 12 #include "base/values.h" |
| 13 #include "components/component_updater/default_component_installer.h" |
| 14 |
| 15 namespace base { |
| 16 class FilePath; |
| 17 } // namespace base |
| 18 |
| 19 namespace component_updater { |
| 20 class SSLErrorAssistantComponentInstallerTraits |
| 21 : public ComponentInstallerTraits { |
| 22 public: |
| 23 SSLErrorAssistantComponentInstallerTraits() {} |
| 24 ~SSLErrorAssistantComponentInstallerTraits() override {} |
| 25 |
| 26 private: |
| 27 // ComponentInstallerTraits methods: |
| 28 bool SupportsGroupPolicyEnabledComponentUpdates() const override; |
| 29 bool RequiresNetworkEncryption() const override; |
| 30 update_client::CrxInstaller::Result OnCustomInstall( |
| 31 const base::DictionaryValue& manifest, |
| 32 const base::FilePath& install_dir) override; |
| 33 bool VerifyInstallation(const base::DictionaryValue& manifest, |
| 34 const base::FilePath& install_dir) const override; |
| 35 void ComponentReady(const base::Version& version, |
| 36 const base::FilePath& install_dir, |
| 37 std::unique_ptr<base::DictionaryValue> manifest) override; |
| 38 base::FilePath GetRelativeInstallDir() const override; |
| 39 void GetHash(std::vector<uint8_t>* hash) const override; |
| 40 std::string GetName() const override; |
| 41 update_client::InstallerAttributes GetInstallerAttributes() const override; |
| 42 std::vector<std::string> GetMimeTypes() const override; |
| 43 |
| 44 static base::FilePath GetInstalledPath(const base::FilePath& base); |
| 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(SSLErrorAssistantComponentInstallerTraits); |
| 47 }; |
| 48 |
| 49 void RegisterSSLErrorAssistantComponent(ComponentUpdateService* cus, |
| 50 const base::FilePath& user_data_dir); |
| 51 |
| 52 } // namespace component_updater |
| 53 |
| 54 #endif // CHROME_BROWSER_COMPONENT_UPDATER_SSL_ERROR_ASSISTANT_COMPONENT_INSTAL
LER_H_ |
| OLD | NEW |