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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 // Component installer responsible for Portable Native Client files. | 37 // Component installer responsible for Portable Native Client files. |
38 // Files can be installed to a shared location, or be installed to | 38 // Files can be installed to a shared location, or be installed to |
39 // a per-user location. | 39 // a per-user location. |
40 class PnaclComponentInstaller : public update_client::ComponentInstaller { | 40 class PnaclComponentInstaller : public update_client::ComponentInstaller { |
41 public: | 41 public: |
42 PnaclComponentInstaller(); | 42 PnaclComponentInstaller(); |
43 | 43 |
44 // ComponentInstaller implementation: | 44 // ComponentInstaller implementation: |
45 void OnUpdateError(int error) override; | 45 void OnUpdateError(int error) override; |
46 | |
47 bool Install(const base::DictionaryValue& manifest, | 46 bool Install(const base::DictionaryValue& manifest, |
48 const base::FilePath& unpack_path) override; | 47 const base::FilePath& unpack_path) override; |
49 | |
50 bool GetInstalledFile(const std::string& file, | 48 bool GetInstalledFile(const std::string& file, |
51 base::FilePath* installed_file) override; | 49 base::FilePath* installed_file) override; |
| 50 bool Uninstall() override; |
52 | 51 |
53 // Register a PNaCl component for the first time. | 52 // Register a PNaCl component for the first time. |
54 void RegisterPnaclComponent(ComponentUpdateService* cus); | 53 void RegisterPnaclComponent(ComponentUpdateService* cus); |
55 | 54 |
56 update_client::CrxComponent GetCrxComponent(); | 55 update_client::CrxComponent GetCrxComponent(); |
57 | 56 |
58 // Determine the base directory for storing each version of PNaCl. | 57 // Determine the base directory for storing each version of PNaCl. |
59 base::FilePath GetPnaclBaseDirectory(); | 58 base::FilePath GetPnaclBaseDirectory(); |
60 | 59 |
61 base::Version current_version() const { return current_version_; } | 60 base::Version current_version() const { return current_version_; } |
(...skipping 16 matching lines...) Expand all Loading... |
78 base::Version current_version_; | 77 base::Version current_version_; |
79 std::string current_fingerprint_; | 78 std::string current_fingerprint_; |
80 ComponentUpdateService* cus_; | 79 ComponentUpdateService* cus_; |
81 | 80 |
82 DISALLOW_COPY_AND_ASSIGN(PnaclComponentInstaller); | 81 DISALLOW_COPY_AND_ASSIGN(PnaclComponentInstaller); |
83 }; | 82 }; |
84 | 83 |
85 } // namespace component_updater | 84 } // namespace component_updater |
86 | 85 |
87 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ | 86 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ |
OLD | NEW |