| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_COMPONENT_UPDATER_EV_WHITELIST_COMPONENT_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_EV_WHITELIST_COMPONENT_INSTALLER_H_ |
| 6 #define CHROME_BROWSER_COMPONENT_UPDATER_EV_WHITELIST_COMPONENT_INSTALLER_H_ | 6 #define CHROME_BROWSER_COMPONENT_UPDATER_EV_WHITELIST_COMPONENT_INSTALLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <memory> |
| 9 #include <string> | 10 #include <string> |
| 10 #include <vector> | 11 #include <vector> |
| 11 | 12 |
| 12 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 13 #include "base/macros.h" | 14 #include "base/macros.h" |
| 14 #include "base/values.h" | 15 #include "base/values.h" |
| 15 #include "components/component_updater/default_component_installer.h" | 16 #include "components/component_updater/default_component_installer.h" |
| 16 | 17 |
| 17 namespace base { | 18 namespace base { |
| 18 class FilePath; | 19 class FilePath; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 35 const base::FilePath& install_dir) override; | 36 const base::FilePath& install_dir) override; |
| 36 bool VerifyInstallation(const base::DictionaryValue& manifest, | 37 bool VerifyInstallation(const base::DictionaryValue& manifest, |
| 37 const base::FilePath& install_dir) const override; | 38 const base::FilePath& install_dir) const override; |
| 38 void ComponentReady(const base::Version& version, | 39 void ComponentReady(const base::Version& version, |
| 39 const base::FilePath& install_dir, | 40 const base::FilePath& install_dir, |
| 40 std::unique_ptr<base::DictionaryValue> manifest) override; | 41 std::unique_ptr<base::DictionaryValue> manifest) override; |
| 41 base::FilePath GetRelativeInstallDir() const override; | 42 base::FilePath GetRelativeInstallDir() const override; |
| 42 void GetHash(std::vector<uint8_t>* hash) const override; | 43 void GetHash(std::vector<uint8_t>* hash) const override; |
| 43 std::string GetName() const override; | 44 std::string GetName() const override; |
| 44 update_client::InstallerAttributes GetInstallerAttributes() const override; | 45 update_client::InstallerAttributes GetInstallerAttributes() const override; |
| 46 std::vector<std::string> GetMimeTypes() const override; |
| 45 | 47 |
| 46 static base::FilePath GetInstalledPath(const base::FilePath& base); | 48 static base::FilePath GetInstalledPath(const base::FilePath& base); |
| 47 | 49 |
| 48 DISALLOW_COPY_AND_ASSIGN(EVWhitelistComponentInstallerTraits); | 50 DISALLOW_COPY_AND_ASSIGN(EVWhitelistComponentInstallerTraits); |
| 49 }; | 51 }; |
| 50 | 52 |
| 51 // Call once during startup to make the component update service aware of | 53 // Call once during startup to make the component update service aware of |
| 52 // the EV whitelist. | 54 // the EV whitelist. |
| 53 void RegisterEVWhitelistComponent(ComponentUpdateService* cus, | 55 void RegisterEVWhitelistComponent(ComponentUpdateService* cus, |
| 54 const base::FilePath& user_data_dir); | 56 const base::FilePath& user_data_dir); |
| 55 | 57 |
| 56 } // namespace component_updater | 58 } // namespace component_updater |
| 57 | 59 |
| 58 #endif // CHROME_BROWSER_COMPONENT_UPDATER_EV_WHITELIST_COMPONENT_INSTALLER_H_ | 60 #endif // CHROME_BROWSER_COMPONENT_UPDATER_EV_WHITELIST_COMPONENT_INSTALLER_H_ |
| OLD | NEW |