OLD | NEW |
1 // Copyright (c) 2011 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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
(...skipping 18 matching lines...) Expand all Loading... |
30 class ChannelInfo; | 30 class ChannelInfo; |
31 class InstallationState; | 31 class InstallationState; |
32 class MasterPreferences; | 32 class MasterPreferences; |
33 | 33 |
34 class ProductState; | 34 class ProductState; |
35 | 35 |
36 typedef std::vector<Product*> Products; | 36 typedef std::vector<Product*> Products; |
37 | 37 |
38 // Encapsulates the state of the current installation operation. Only valid | 38 // Encapsulates the state of the current installation operation. Only valid |
39 // for installs and upgrades (not for uninstalls or non-install commands). | 39 // for installs and upgrades (not for uninstalls or non-install commands). |
| 40 // This class interprets the command-line arguments and master preferences and |
| 41 // determines the operations to be performed. For example, the Chrome Binaries |
| 42 // are automatically added if required in multi-install mode. |
| 43 // TODO(erikwright): This is now used a fair bit during uninstall, and |
| 44 // InstallerState::Initialize() contains a lot of code for uninstall. The class |
| 45 // comment should probably be updated. |
40 // TODO(grt): Rename to InstallerEngine/Conductor or somesuch? | 46 // TODO(grt): Rename to InstallerEngine/Conductor or somesuch? |
41 class InstallerState { | 47 class InstallerState { |
42 public: | 48 public: |
43 enum Level { | 49 enum Level { |
44 UNKNOWN_LEVEL, | 50 UNKNOWN_LEVEL, |
45 USER_LEVEL, | 51 USER_LEVEL, |
46 SYSTEM_LEVEL | 52 SYSTEM_LEVEL |
47 }; | 53 }; |
48 | 54 |
49 enum PackageType { | 55 enum PackageType { |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 bool msi_; | 234 bool msi_; |
229 bool verbose_logging_; | 235 bool verbose_logging_; |
230 | 236 |
231 private: | 237 private: |
232 DISALLOW_COPY_AND_ASSIGN(InstallerState); | 238 DISALLOW_COPY_AND_ASSIGN(InstallerState); |
233 }; // class InstallerState | 239 }; // class InstallerState |
234 | 240 |
235 } // namespace installer | 241 } // namespace installer |
236 | 242 |
237 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ | 243 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ |
OLD | NEW |