| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 // A convenience method returning level() == SYSTEM_LEVEL. | 113 // A convenience method returning level() == SYSTEM_LEVEL. |
| 114 bool system_install() const; | 114 bool system_install() const; |
| 115 | 115 |
| 116 // A convenience method returning package_type() == MULTI_PACKAGE. | 116 // A convenience method returning package_type() == MULTI_PACKAGE. |
| 117 bool is_multi_install() const; | 117 bool is_multi_install() const; |
| 118 | 118 |
| 119 // The full path to the place where the operand resides. | 119 // The full path to the place where the operand resides. |
| 120 const base::FilePath& target_path() const { return target_path_; } | 120 const base::FilePath& target_path() const { return target_path_; } |
| 121 | 121 |
| 122 // Sets the value returned by target_path(). |
| 123 void set_target_path_for_testing(const base::FilePath& target_path) { |
| 124 target_path_ = target_path; |
| 125 } |
| 126 |
| 122 // True if the "msi" preference is set or if a product with the "msi" state | 127 // True if the "msi" preference is set or if a product with the "msi" state |
| 123 // flag is set is to be operated on. | 128 // flag is set is to be operated on. |
| 124 bool is_msi() const { return msi_; } | 129 bool is_msi() const { return msi_; } |
| 125 | 130 |
| 126 // True if the process is running at a reduced "background" priority. | 131 // True if the process is running at a reduced "background" priority. |
| 127 bool is_background_mode() const { return background_mode_; } | 132 bool is_background_mode() const { return background_mode_; } |
| 128 | 133 |
| 129 // Indicate that the process is or is not running in the background. | 134 // Indicate that the process is or is not running in the background. |
| 130 void set_background_mode(bool bg) { background_mode_ = bg; } | 135 void set_background_mode(bool bg) { background_mode_ = bg; } |
| 131 | 136 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 bool background_mode_; | 272 bool background_mode_; |
| 268 bool verbose_logging_; | 273 bool verbose_logging_; |
| 269 | 274 |
| 270 private: | 275 private: |
| 271 DISALLOW_COPY_AND_ASSIGN(InstallerState); | 276 DISALLOW_COPY_AND_ASSIGN(InstallerState); |
| 272 }; // class InstallerState | 277 }; // class InstallerState |
| 273 | 278 |
| 274 } // namespace installer | 279 } // namespace installer |
| 275 | 280 |
| 276 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ | 281 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ |
| OLD | NEW |