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 // Defines all install related constants that need to be used by Chrome as | 5 // Defines all install related constants that need to be used by Chrome as |
6 // well as Chrome Installer. | 6 // well as Chrome Installer. |
7 | 7 |
8 #ifndef CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ | 8 #ifndef CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |
9 #define CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ | 9 #define CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |
10 | 10 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 PATCH_INVALID_ARGUMENTS, // 49. The arguments of --patch were missing or | 83 PATCH_INVALID_ARGUMENTS, // 49. The arguments of --patch were missing or |
84 // they were invalid for any reason. | 84 // they were invalid for any reason. |
85 DIFF_PATCH_SOURCE_MISSING, // 50. No previous version archive found for | 85 DIFF_PATCH_SOURCE_MISSING, // 50. No previous version archive found for |
86 // differential update. | 86 // differential update. |
87 UNUSED_BINARIES, // 51. No multi-install products to update. The | 87 UNUSED_BINARIES, // 51. No multi-install products to update. The |
88 // binaries will be uninstalled if they are not | 88 // binaries will be uninstalled if they are not |
89 // in use. | 89 // in use. |
90 UNUSED_BINARIES_UNINSTALLED, // 52. The binaries were uninstalled. | 90 UNUSED_BINARIES_UNINSTALLED, // 52. The binaries were uninstalled. |
91 UNSUPPORTED_OPTION, // 53. An unsupported legacy option was given. | 91 UNSUPPORTED_OPTION, // 53. An unsupported legacy option was given. |
92 CPU_NOT_SUPPORTED, // 54. Current OS not supported | 92 CPU_NOT_SUPPORTED, // 54. Current OS not supported |
| 93 REENABLE_UPDATES_SUCCEEDED, // 55. Autoupdates are now enabled. |
| 94 REENABLE_UPDATES_FAILED, // 56. Autoupdates could not be enabled. |
| 95 |
93 // Friendly reminder: note the COMPILE_ASSERT below. | 96 // Friendly reminder: note the COMPILE_ASSERT below. |
94 }; | 97 }; |
95 | 98 |
96 | 99 |
97 // Existing InstallStatus values must not change. Always add to the end. | 100 // Existing InstallStatus values must not change. Always add to the end. |
98 COMPILE_ASSERT(installer::CPU_NOT_SUPPORTED == 54, | 101 COMPILE_ASSERT(installer::REENABLE_UPDATES_FAILED == 56, |
99 dont_change_enum); | 102 dont_change_enum); |
100 | 103 |
101 // The type of an update archive. | 104 // The type of an update archive. |
102 enum ArchiveType { | 105 enum ArchiveType { |
103 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. | 106 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. |
104 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. | 107 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. |
105 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. | 108 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. |
106 }; | 109 }; |
107 | 110 |
108 // Stages of an installation reported through Google Update on failure. | 111 // Stages of an installation reported through Google Update on failure. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 extern const char kForceUninstall[]; | 163 extern const char kForceUninstall[]; |
161 extern const char kInstallArchive[]; | 164 extern const char kInstallArchive[]; |
162 extern const char kInstallerData[]; | 165 extern const char kInstallerData[]; |
163 extern const char kLogFile[]; | 166 extern const char kLogFile[]; |
164 extern const char kMakeChromeDefault[]; | 167 extern const char kMakeChromeDefault[]; |
165 extern const char kMsi[]; | 168 extern const char kMsi[]; |
166 extern const char kMultiInstall[]; | 169 extern const char kMultiInstall[]; |
167 extern const char kNewSetupExe[]; | 170 extern const char kNewSetupExe[]; |
168 extern const char kOnOsUpgrade[]; | 171 extern const char kOnOsUpgrade[]; |
169 extern const char kQueryEULAAcceptance[]; | 172 extern const char kQueryEULAAcceptance[]; |
| 173 extern const char kReenableAutoupdates[]; |
170 extern const char kRegisterChromeBrowser[]; | 174 extern const char kRegisterChromeBrowser[]; |
171 extern const char kRegisterChromeBrowserSuffix[]; | 175 extern const char kRegisterChromeBrowserSuffix[]; |
172 extern const char kRegisterDevChrome[]; | 176 extern const char kRegisterDevChrome[]; |
173 extern const char kRegisterURLProtocol[]; | 177 extern const char kRegisterURLProtocol[]; |
174 extern const char kRenameChromeExe[]; | 178 extern const char kRenameChromeExe[]; |
175 extern const char kRemoveChromeRegistration[]; | 179 extern const char kRemoveChromeRegistration[]; |
176 extern const char kRunAsAdmin[]; | 180 extern const char kRunAsAdmin[]; |
177 extern const char kSelfDestruct[]; | 181 extern const char kSelfDestruct[]; |
178 extern const char kSystemLevel[]; | 182 extern const char kSystemLevel[]; |
179 extern const char kTriggerActiveSetup[]; | 183 extern const char kTriggerActiveSetup[]; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 const int kCourgetteErrorOffset = 300; | 263 const int kCourgetteErrorOffset = 300; |
260 const int kBsdiffErrorOffset = 600; | 264 const int kBsdiffErrorOffset = 600; |
261 | 265 |
262 // Arguments to --patch switch | 266 // Arguments to --patch switch |
263 extern const char kCourgette[]; | 267 extern const char kCourgette[]; |
264 extern const char kBsdiff[]; | 268 extern const char kBsdiff[]; |
265 | 269 |
266 } // namespace installer | 270 } // namespace installer |
267 | 271 |
268 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ | 272 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |
OLD | NEW |