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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 // Component installer responsible for Portable Native Client files. | 35 // Component installer responsible for Portable Native Client files. |
36 // Files can be installed to a shared location, or be installed to | 36 // Files can be installed to a shared location, or be installed to |
37 // a per-user location. | 37 // a per-user location. |
38 class PnaclComponentInstaller : public ComponentInstaller { | 38 class PnaclComponentInstaller : public ComponentInstaller { |
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 bool GetInstalledFile(const std::string& file, | 49 virtual bool GetInstalledFile(const std::string& file, |
50 base::FilePath* installed_file) OVERRIDE; | 50 base::FilePath* installed_file) override; |
51 | 51 |
52 // Register a PNaCl component for the first time. | 52 // Register a PNaCl component for the first time. |
53 void RegisterPnaclComponent(ComponentUpdateService* cus); | 53 void RegisterPnaclComponent(ComponentUpdateService* cus); |
54 | 54 |
55 CrxComponent GetCrxComponent(); | 55 CrxComponent GetCrxComponent(); |
56 | 56 |
57 // Determine the base directory for storing each version of PNaCl. | 57 // Determine the base directory for storing each version of PNaCl. |
58 base::FilePath GetPnaclBaseDirectory(); | 58 base::FilePath GetPnaclBaseDirectory(); |
59 | 59 |
60 base::Version current_version() const { return current_version_; } | 60 base::Version current_version() const { return current_version_; } |
(...skipping 13 matching lines...) Expand all Loading... |
74 private: | 74 private: |
75 base::Version current_version_; | 75 base::Version current_version_; |
76 std::string current_fingerprint_; | 76 std::string current_fingerprint_; |
77 ComponentUpdateService* cus_; | 77 ComponentUpdateService* cus_; |
78 DISALLOW_COPY_AND_ASSIGN(PnaclComponentInstaller); | 78 DISALLOW_COPY_AND_ASSIGN(PnaclComponentInstaller); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace component_updater | 81 } // namespace component_updater |
82 | 82 |
83 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ | 83 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ |
OLD | NEW |