| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_INSTALLER_UTIL_INSTALLATION_STATE_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ |
| 6 #define CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ | 6 #define CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 namespace installer { | 25 namespace installer { |
| 26 | 26 |
| 27 class InstallationState; | 27 class InstallationState; |
| 28 | 28 |
| 29 // A representation of a product's state on the machine based on the contents | 29 // A representation of a product's state on the machine based on the contents |
| 30 // of the Windows registry. | 30 // of the Windows registry. |
| 31 // TODO(grt): Pull this out into its own file. | 31 // TODO(grt): Pull this out into its own file. |
| 32 class ProductState { | 32 class ProductState { |
| 33 public: | 33 public: |
| 34 ProductState(); | 34 ProductState(); |
| 35 ~ProductState(); |
| 35 | 36 |
| 36 // Returns true if the product is installed (i.e., the product's Clients key | 37 // Returns true if the product is installed (i.e., the product's Clients key |
| 37 // exists and has a "pv" value); false otherwise. | 38 // exists and has a "pv" value); false otherwise. |
| 38 bool Initialize(bool system_install, | 39 bool Initialize(bool system_install, |
| 39 BrowserDistribution::Type type); | 40 BrowserDistribution::Type type); |
| 40 bool Initialize(bool system_install, | 41 bool Initialize(bool system_install, |
| 41 BrowserDistribution* distribution); | 42 BrowserDistribution* distribution); |
| 42 | 43 |
| 43 // Returns the product's channel info (i.e., the Google Update "ap" value). | 44 // Returns the product's channel info (i.e., the Google Update "ap" value). |
| 44 const ChannelInfo& channel() const { return channel_; } | 45 const ChannelInfo& channel() const { return channel_; } |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 ProductState user_products_[NUM_PRODUCTS]; | 163 ProductState user_products_[NUM_PRODUCTS]; |
| 163 ProductState system_products_[NUM_PRODUCTS]; | 164 ProductState system_products_[NUM_PRODUCTS]; |
| 164 | 165 |
| 165 private: | 166 private: |
| 166 DISALLOW_COPY_AND_ASSIGN(InstallationState); | 167 DISALLOW_COPY_AND_ASSIGN(InstallationState); |
| 167 }; // class InstallationState | 168 }; // class InstallationState |
| 168 | 169 |
| 169 } // namespace installer | 170 } // namespace installer |
| 170 | 171 |
| 171 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ | 172 #endif // CHROME_INSTALLER_UTIL_INSTALLATION_STATE_H_ |
| OLD | NEW |