| 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 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 namespace pnacl { | 24 namespace pnacl { |
| 25 // Returns true if PNaCl actually needs an on-demand component update. | 25 // Returns true if PNaCl actually needs an on-demand component update. |
| 26 // E.g., if PNaCl is not yet installed and the user is loading a PNaCl app, | 26 // E.g., if PNaCl is not yet installed and the user is loading a PNaCl app, |
| 27 // or the current version is behind chrome's version, and is ABI incompatible | 27 // or the current version is behind chrome's version, and is ABI incompatible |
| 28 // with chrome. If not necessary, returns false. | 28 // with chrome. If not necessary, returns false. |
| 29 // May conservatively return false before PNaCl is registered, but | 29 // May conservatively return false before PNaCl is registered, but |
| 30 // should return the right answer after it is registered. | 30 // should return the right answer after it is registered. |
| 31 bool NeedsOnDemandUpdate(); | 31 bool NeedsOnDemandUpdate(); |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace component_updater { |
| 35 |
| 34 // Component installer responsible for Portable Native Client files. | 36 // Component installer responsible for Portable Native Client files. |
| 35 // Files can be installed to a shared location, or be installed to | 37 // Files can be installed to a shared location, or be installed to |
| 36 // a per-user location. | 38 // a per-user location. |
| 37 class PnaclComponentInstaller : public ComponentInstaller { | 39 class PnaclComponentInstaller : public ComponentInstaller { |
| 38 public: | 40 public: |
| 39 PnaclComponentInstaller(); | 41 PnaclComponentInstaller(); |
| 40 | 42 |
| 41 virtual ~PnaclComponentInstaller(); | 43 virtual ~PnaclComponentInstaller(); |
| 42 | 44 |
| 43 virtual void OnUpdateError(int error) OVERRIDE; | 45 virtual void OnUpdateError(int error) OVERRIDE; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 bool per_user_; | 90 bool per_user_; |
| 89 bool updates_disabled_; | 91 bool updates_disabled_; |
| 90 scoped_ptr<PnaclProfileObserver> profile_observer_; | 92 scoped_ptr<PnaclProfileObserver> profile_observer_; |
| 91 base::FilePath current_profile_path_; | 93 base::FilePath current_profile_path_; |
| 92 base::Version current_version_; | 94 base::Version current_version_; |
| 93 std::string current_fingerprint_; | 95 std::string current_fingerprint_; |
| 94 ComponentUpdateService* cus_; | 96 ComponentUpdateService* cus_; |
| 95 DISALLOW_COPY_AND_ASSIGN(PnaclComponentInstaller); | 97 DISALLOW_COPY_AND_ASSIGN(PnaclComponentInstaller); |
| 96 }; | 98 }; |
| 97 | 99 |
| 100 } // namespace component_updater |
| 101 |
| 98 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ | 102 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ |
| OLD | NEW |