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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // The level (user or system) of this operation. | 100 // The level (user or system) of this operation. |
101 Level level() const { return level_; } | 101 Level level() const { return level_; } |
102 | 102 |
103 // The package type (single or multi) of this operation. | 103 // The package type (single or multi) of this operation. |
104 PackageType package_type() const { return package_type_; } | 104 PackageType package_type() const { return package_type_; } |
105 | 105 |
106 // An identifier of this operation. | 106 // An identifier of this operation. |
107 Operation operation() const { return operation_; } | 107 Operation operation() const { return operation_; } |
108 | 108 |
109 // A convenience method returning level() == SYSTEM_LEVEL. | 109 // A convenience method returning level() == SYSTEM_LEVEL. |
110 // TODO(grt): Eradicate the bool in favor of the enum. | |
111 bool system_install() const; | 110 bool system_install() const; |
112 | 111 |
113 // A convenience method returning package_type() == MULTI_PACKAGE. | 112 // A convenience method returning package_type() == MULTI_PACKAGE. |
114 // TODO(grt): Eradicate the bool in favor of the enum. | |
115 bool is_multi_install() const; | 113 bool is_multi_install() const; |
116 | 114 |
117 // The full path to the place where the operand resides. | 115 // The full path to the place where the operand resides. |
118 const base::FilePath& target_path() const { return target_path_; } | 116 const base::FilePath& target_path() const { return target_path_; } |
119 | 117 |
120 // True if the "msi" preference is set or if a product with the "msi" state | 118 // True if the "msi" preference is set or if a product with the "msi" state |
121 // flag is set is to be operated on. | 119 // flag is set is to be operated on. |
122 bool is_msi() const { return msi_; } | 120 bool is_msi() const { return msi_; } |
123 | 121 |
124 // True if the --verbose-logging command-line flag is set or if the | 122 // True if the --verbose-logging command-line flag is set or if the |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 bool msi_; | 266 bool msi_; |
269 bool verbose_logging_; | 267 bool verbose_logging_; |
270 | 268 |
271 private: | 269 private: |
272 DISALLOW_COPY_AND_ASSIGN(InstallerState); | 270 DISALLOW_COPY_AND_ASSIGN(InstallerState); |
273 }; // class InstallerState | 271 }; // class InstallerState |
274 | 272 |
275 } // namespace installer | 273 } // namespace installer |
276 | 274 |
277 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ | 275 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ |
OLD | NEW |