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_INSTALLER_STATE_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ |
6 #define CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ | 6 #define CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 Operation operation() const { return operation_; } | 106 Operation operation() const { return operation_; } |
107 | 107 |
108 // A convenience method returning level() == SYSTEM_LEVEL. | 108 // A convenience method returning level() == SYSTEM_LEVEL. |
109 // TODO(grt): Eradicate the bool in favor of the enum. | 109 // TODO(grt): Eradicate the bool in favor of the enum. |
110 bool system_install() const; | 110 bool system_install() const; |
111 | 111 |
112 // A convenience method returning package_type() == MULTI_PACKAGE. | 112 // A convenience method returning package_type() == MULTI_PACKAGE. |
113 // TODO(grt): Eradicate the bool in favor of the enum. | 113 // TODO(grt): Eradicate the bool in favor of the enum. |
114 bool is_multi_install() const; | 114 bool is_multi_install() const; |
115 | 115 |
116 // A convenient method returning the presence of the | |
117 // --ensure-google-update-present switch. | |
118 bool ensure_google_update_present() const { | |
119 return ensure_google_update_present_; | |
120 } | |
121 | |
122 // The full path to the place where the operand resides. | 116 // The full path to the place where the operand resides. |
123 const base::FilePath& target_path() const { return target_path_; } | 117 const base::FilePath& target_path() const { return target_path_; } |
124 | 118 |
125 // True if the "msi" preference is set or if a product with the "msi" state | 119 // True if the "msi" preference is set or if a product with the "msi" state |
126 // flag is set is to be operated on. | 120 // flag is set is to be operated on. |
127 bool is_msi() const { return msi_; } | 121 bool is_msi() const { return msi_; } |
128 | 122 |
129 // True if the --verbose-logging command-line flag is set or if the | 123 // True if the --verbose-logging command-line flag is set or if the |
130 // verbose_logging master preferences option is true. | 124 // verbose_logging master preferences option is true. |
131 bool verbose_logging() const { return verbose_logging_; } | 125 bool verbose_logging() const { return verbose_logging_; } |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 ScopedVector<Product> products_; | 261 ScopedVector<Product> products_; |
268 BrowserDistribution* multi_package_distribution_; | 262 BrowserDistribution* multi_package_distribution_; |
269 base::Version critical_update_version_; | 263 base::Version critical_update_version_; |
270 Level level_; | 264 Level level_; |
271 PackageType package_type_; | 265 PackageType package_type_; |
272 #if defined(OS_WIN) | 266 #if defined(OS_WIN) |
273 HKEY root_key_; | 267 HKEY root_key_; |
274 #endif | 268 #endif |
275 bool msi_; | 269 bool msi_; |
276 bool verbose_logging_; | 270 bool verbose_logging_; |
277 bool ensure_google_update_present_; | |
278 | 271 |
279 private: | 272 private: |
280 DISALLOW_COPY_AND_ASSIGN(InstallerState); | 273 DISALLOW_COPY_AND_ASSIGN(InstallerState); |
281 }; // class InstallerState | 274 }; // class InstallerState |
282 | 275 |
283 } // namespace installer | 276 } // namespace installer |
284 | 277 |
285 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ | 278 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ |
OLD | NEW |