| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PNACL_PNACL_COMPONENT_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ |
| 6 #define CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ | 6 #define CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 public: | 40 public: |
| 41 PnaclComponentInstaller(); | 41 PnaclComponentInstaller(); |
| 42 | 42 |
| 43 virtual ~PnaclComponentInstaller(); | 43 virtual ~PnaclComponentInstaller(); |
| 44 | 44 |
| 45 virtual void OnUpdateError(int error) OVERRIDE; | 45 virtual void OnUpdateError(int error) OVERRIDE; |
| 46 | 46 |
| 47 virtual bool Install(const base::DictionaryValue& manifest, | 47 virtual bool Install(const base::DictionaryValue& manifest, |
| 48 const base::FilePath& unpack_path) OVERRIDE; | 48 const base::FilePath& unpack_path) OVERRIDE; |
| 49 | 49 |
| 50 virtual void OnInstallError( |
| 51 const InstallerSourceSerializer& serializer) OVERRIDE; |
| 52 |
| 50 virtual bool GetInstalledFile(const std::string& file, | 53 virtual bool GetInstalledFile(const std::string& file, |
| 51 base::FilePath* installed_file) OVERRIDE; | 54 base::FilePath* installed_file) OVERRIDE; |
| 52 | 55 |
| 53 // Register a PNaCl component for the first time. | 56 // Register a PNaCl component for the first time. |
| 54 void RegisterPnaclComponent(ComponentUpdateService* cus, | 57 void RegisterPnaclComponent(ComponentUpdateService* cus, |
| 55 const base::CommandLine& command_line); | 58 const base::CommandLine& command_line); |
| 56 | 59 |
| 57 // Check the PNaCl version again and re-register with the component | 60 // Check the PNaCl version again and re-register with the component |
| 58 // updater service. | 61 // updater service. |
| 59 void ReRegisterPnacl(); | 62 void ReRegisterPnacl(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 base::FilePath current_profile_path_; | 96 base::FilePath current_profile_path_; |
| 94 base::Version current_version_; | 97 base::Version current_version_; |
| 95 std::string current_fingerprint_; | 98 std::string current_fingerprint_; |
| 96 ComponentUpdateService* cus_; | 99 ComponentUpdateService* cus_; |
| 97 DISALLOW_COPY_AND_ASSIGN(PnaclComponentInstaller); | 100 DISALLOW_COPY_AND_ASSIGN(PnaclComponentInstaller); |
| 98 }; | 101 }; |
| 99 | 102 |
| 100 } // namespace component_updater | 103 } // namespace component_updater |
| 101 | 104 |
| 102 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ | 105 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ |
| OLD | NEW |