| 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 28 matching lines...) Expand all Loading... |
| 39 public: | 39 public: |
| 40 PnaclComponentInstaller(); | 40 PnaclComponentInstaller(); |
| 41 | 41 |
| 42 virtual ~PnaclComponentInstaller(); | 42 virtual ~PnaclComponentInstaller(); |
| 43 | 43 |
| 44 virtual void OnUpdateError(int error) OVERRIDE; | 44 virtual void OnUpdateError(int error) OVERRIDE; |
| 45 | 45 |
| 46 virtual bool Install(const base::DictionaryValue& manifest, | 46 virtual bool Install(const base::DictionaryValue& manifest, |
| 47 const base::FilePath& unpack_path) OVERRIDE; | 47 const base::FilePath& unpack_path) OVERRIDE; |
| 48 | 48 |
| 49 virtual base::FilePath GetBackupPath() const OVERRIDE; |
| 50 |
| 51 virtual void InstallExternally() OVERRIDE; |
| 52 |
| 49 virtual bool GetInstalledFile(const std::string& file, | 53 virtual bool GetInstalledFile(const std::string& file, |
| 50 base::FilePath* installed_file) OVERRIDE; | 54 base::FilePath* installed_file) OVERRIDE; |
| 51 | 55 |
| 52 // Register a PNaCl component for the first time. | 56 // Register a PNaCl component for the first time. |
| 53 void RegisterPnaclComponent(ComponentUpdateService* cus, | 57 void RegisterPnaclComponent(ComponentUpdateService* cus, |
| 54 const base::CommandLine& command_line); | 58 const base::CommandLine& command_line); |
| 55 | 59 |
| 56 CrxComponent GetCrxComponent(); | 60 CrxComponent GetCrxComponent(); |
| 57 | 61 |
| 58 // Return true if PNaCl updates are disabled. | 62 // Return true if PNaCl updates are disabled. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 79 bool updates_disabled_; | 83 bool updates_disabled_; |
| 80 base::Version current_version_; | 84 base::Version current_version_; |
| 81 std::string current_fingerprint_; | 85 std::string current_fingerprint_; |
| 82 ComponentUpdateService* cus_; | 86 ComponentUpdateService* cus_; |
| 83 DISALLOW_COPY_AND_ASSIGN(PnaclComponentInstaller); | 87 DISALLOW_COPY_AND_ASSIGN(PnaclComponentInstaller); |
| 84 }; | 88 }; |
| 85 | 89 |
| 86 } // namespace component_updater | 90 } // namespace component_updater |
| 87 | 91 |
| 88 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ | 92 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ |
| OLD | NEW |