| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // invalid installer state. | 81 // invalid installer state. |
| 82 WAIT_FOR_EXISTING_FAILED, // 48. OS error waiting for existing setup.exe. | 82 WAIT_FOR_EXISTING_FAILED, // 48. OS error waiting for existing setup.exe. |
| 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. | |
| 92 // Friendly reminder: note the COMPILE_ASSERT below. | 91 // Friendly reminder: note the COMPILE_ASSERT below. |
| 93 }; | 92 }; |
| 94 | 93 |
| 95 | 94 |
| 96 // Existing InstallStatus values must not change. Always add to the end. | 95 // Existing InstallStatus values must not change. Always add to the end. |
| 97 COMPILE_ASSERT(installer::UNSUPPORTED_OPTION == 53, | 96 COMPILE_ASSERT(installer::UNUSED_BINARIES_UNINSTALLED == 52, |
| 98 dont_change_enum); | 97 dont_change_enum); |
| 99 | 98 |
| 100 // The type of an update archive. | 99 // The type of an update archive. |
| 101 enum ArchiveType { | 100 enum ArchiveType { |
| 102 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. | 101 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. |
| 103 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. | 102 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. |
| 104 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. | 103 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. |
| 105 }; | 104 }; |
| 106 | 105 |
| 107 // Stages of an installation reported through Google Update on failure. | 106 // Stages of an installation reported through Google Update on failure. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 extern const char kDoNotRegisterForUpdateLaunch[]; | 153 extern const char kDoNotRegisterForUpdateLaunch[]; |
| 155 extern const char kDoNotRemoveSharedItems[]; | 154 extern const char kDoNotRemoveSharedItems[]; |
| 156 extern const char kEnableLogging[]; | 155 extern const char kEnableLogging[]; |
| 157 extern const char kEnsureGoogleUpdatePresent[]; | 156 extern const char kEnsureGoogleUpdatePresent[]; |
| 158 extern const char kForceConfigureUserSettings[]; | 157 extern const char kForceConfigureUserSettings[]; |
| 159 extern const char kForceUninstall[]; | 158 extern const char kForceUninstall[]; |
| 160 extern const char kInstallArchive[]; | 159 extern const char kInstallArchive[]; |
| 161 extern const char kInstallerData[]; | 160 extern const char kInstallerData[]; |
| 162 extern const char kLogFile[]; | 161 extern const char kLogFile[]; |
| 163 extern const char kMakeChromeDefault[]; | 162 extern const char kMakeChromeDefault[]; |
| 163 extern const char kMigrateChromeFrame[]; |
| 164 extern const char kMsi[]; | 164 extern const char kMsi[]; |
| 165 extern const char kMultiInstall[]; | 165 extern const char kMultiInstall[]; |
| 166 extern const char kNewSetupExe[]; | 166 extern const char kNewSetupExe[]; |
| 167 extern const char kOnOsUpgrade[]; | 167 extern const char kOnOsUpgrade[]; |
| 168 extern const char kQueryEULAAcceptance[]; | 168 extern const char kQueryEULAAcceptance[]; |
| 169 extern const char kRegisterChromeBrowser[]; | 169 extern const char kRegisterChromeBrowser[]; |
| 170 extern const char kRegisterChromeBrowserSuffix[]; | 170 extern const char kRegisterChromeBrowserSuffix[]; |
| 171 extern const char kRegisterDevChrome[]; | 171 extern const char kRegisterDevChrome[]; |
| 172 extern const char kRegisterURLProtocol[]; | 172 extern const char kRegisterURLProtocol[]; |
| 173 extern const char kRenameChromeExe[]; | 173 extern const char kRenameChromeExe[]; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 const int kCourgetteErrorOffset = 300; | 256 const int kCourgetteErrorOffset = 300; |
| 257 const int kBsdiffErrorOffset = 600; | 257 const int kBsdiffErrorOffset = 600; |
| 258 | 258 |
| 259 // Arguments to --patch switch | 259 // Arguments to --patch switch |
| 260 extern const char kCourgette[]; | 260 extern const char kCourgette[]; |
| 261 extern const char kBsdiff[]; | 261 extern const char kBsdiff[]; |
| 262 | 262 |
| 263 } // namespace installer | 263 } // namespace installer |
| 264 | 264 |
| 265 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ | 265 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |
| OLD | NEW |