| 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_SETUP_INSTALLER_STATE_H_ | 5 #ifndef CHROME_INSTALLER_SETUP_INSTALLER_STATE_H_ |
| 6 #define CHROME_INSTALLER_SETUP_INSTALLER_STATE_H_ | 6 #define CHROME_INSTALLER_SETUP_INSTALLER_STATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 HKEY root_key() const { return root_key_; } | 141 HKEY root_key() const { return root_key_; } |
| 142 #endif | 142 #endif |
| 143 | 143 |
| 144 // The ClientState key by which we interact with Google Update. | 144 // The ClientState key by which we interact with Google Update. |
| 145 const base::string16& state_key() const { return state_key_; } | 145 const base::string16& state_key() const { return state_key_; } |
| 146 | 146 |
| 147 // Convenience method to return the type of the BrowserDistribution associated | 147 // Convenience method to return the type of the BrowserDistribution associated |
| 148 // with the ClientState key we will be interacting with. | 148 // with the ClientState key we will be interacting with. |
| 149 BrowserDistribution::Type state_type() const { return state_type_; } | 149 BrowserDistribution::Type state_type() const { return state_type_; } |
| 150 | 150 |
| 151 // Returns true if this is an update of multi-install Chrome to |
| 152 // single-install. |
| 153 bool is_migrating_to_single() const { return is_migrating_to_single_; } |
| 154 |
| 151 // Returns the BrowserDistribution instance corresponding to the binaries for | 155 // Returns the BrowserDistribution instance corresponding to the binaries for |
| 152 // this run if we're operating on a multi-package product. | 156 // this run if we're operating on a multi-package product. |
| 153 BrowserDistribution* multi_package_binaries_distribution() const { | 157 BrowserDistribution* multi_package_binaries_distribution() const { |
| 154 DCHECK(package_type_ == MULTI_PACKAGE); | 158 DCHECK(package_type_ == MULTI_PACKAGE); |
| 155 DCHECK(multi_package_distribution_ != NULL); | 159 DCHECK(multi_package_distribution_ != NULL); |
| 156 return multi_package_distribution_; | 160 return multi_package_distribution_; |
| 157 } | 161 } |
| 158 | 162 |
| 159 const Products& products() const { return products_.get(); } | 163 const Products& products() const { return products_.get(); } |
| 160 | 164 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 base::Version critical_update_version_; | 267 base::Version critical_update_version_; |
| 264 ProgressCalculator progress_calculator_; | 268 ProgressCalculator progress_calculator_; |
| 265 Level level_; | 269 Level level_; |
| 266 PackageType package_type_; | 270 PackageType package_type_; |
| 267 #if defined(OS_WIN) | 271 #if defined(OS_WIN) |
| 268 HKEY root_key_; | 272 HKEY root_key_; |
| 269 #endif | 273 #endif |
| 270 bool msi_; | 274 bool msi_; |
| 271 bool background_mode_; | 275 bool background_mode_; |
| 272 bool verbose_logging_; | 276 bool verbose_logging_; |
| 277 bool is_migrating_to_single_; |
| 273 | 278 |
| 274 private: | 279 private: |
| 275 DISALLOW_COPY_AND_ASSIGN(InstallerState); | 280 DISALLOW_COPY_AND_ASSIGN(InstallerState); |
| 276 }; // class InstallerState | 281 }; // class InstallerState |
| 277 | 282 |
| 278 } // namespace installer | 283 } // namespace installer |
| 279 | 284 |
| 280 #endif // CHROME_INSTALLER_SETUP_INSTALLER_STATE_H_ | 285 #endif // CHROME_INSTALLER_SETUP_INSTALLER_STATE_H_ |
| OLD | NEW |