| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 APP_HOST_REQUIRES_MULTI_INSTALL, // 41. --multi-install was missing from the | 73 APP_HOST_REQUIRES_MULTI_INSTALL, // 41. --multi-install was missing from the |
| 74 // command line. | 74 // command line. |
| 75 APPLY_DIFF_PATCH_FAILED, // 42. Failed to apply a diff patch. | 75 APPLY_DIFF_PATCH_FAILED, // 42. Failed to apply a diff patch. |
| 76 INCONSISTENT_UPDATE_POLICY, // 43. Inconsistent update policy GP settings. | 76 INCONSISTENT_UPDATE_POLICY, // 43. Inconsistent update policy GP settings. |
| 77 APP_HOST_REQUIRES_USER_LEVEL, // 44. --system-level is forbidden. | 77 APP_HOST_REQUIRES_USER_LEVEL, // 44. --system-level is forbidden. |
| 78 APP_HOST_REQUIRES_BINARIES, // 45. No Chrome binaries at either level. | 78 APP_HOST_REQUIRES_BINARIES, // 45. No Chrome binaries at either level. |
| 79 INSTALL_OF_GOOGLE_UPDATE_FAILED, // 46. Failed to install Google Update. | 79 INSTALL_OF_GOOGLE_UPDATE_FAILED, // 46. Failed to install Google Update. |
| 80 INVALID_STATE_FOR_OPTION, // 47. A non-install option was called with an | 80 INVALID_STATE_FOR_OPTION, // 47. A non-install option was called with an |
| 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 | |
| 84 // they were invalid for any reason. | |
| 85 // Friendly reminder: note the COMPILE_ASSERT below. | 83 // Friendly reminder: note the COMPILE_ASSERT below. |
| 86 }; | 84 }; |
| 87 | 85 |
| 88 | 86 |
| 89 // Existing InstallStatus values must not change. Always add to the end. | 87 // Existing InstallStatus values must not change. Always add to the end. |
| 90 COMPILE_ASSERT(installer::PATCH_INVALID_ARGUMENTS == 49, | 88 COMPILE_ASSERT(installer::WAIT_FOR_EXISTING_FAILED == 48, |
| 91 dont_change_enum); | 89 dont_change_enum); |
| 92 | 90 |
| 93 // The type of an update archive. | 91 // The type of an update archive. |
| 94 enum ArchiveType { | 92 enum ArchiveType { |
| 95 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. | 93 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. |
| 96 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. | 94 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. |
| 97 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. | 95 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. |
| 98 }; | 96 }; |
| 99 | 97 |
| 100 // Stages of an installation reported through Google Update on failure. | 98 // Stages of an installation reported through Google Update on failure. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 123 DEFERRING_TO_HIGHER_VERSION, // 18: Deferring to an installed higher version. | 121 DEFERRING_TO_HIGHER_VERSION, // 18: Deferring to an installed higher version. |
| 124 NUM_STAGES // 19: The number of stages. | 122 NUM_STAGES // 19: The number of stages. |
| 125 }; | 123 }; |
| 126 | 124 |
| 127 // When we start reporting the numerical values from the enum, the order | 125 // When we start reporting the numerical values from the enum, the order |
| 128 // above MUST be preserved. | 126 // above MUST be preserved. |
| 129 COMPILE_ASSERT(DEFERRING_TO_HIGHER_VERSION == 18, | 127 COMPILE_ASSERT(DEFERRING_TO_HIGHER_VERSION == 18, |
| 130 never_ever_ever_change_InstallerStage_values_bang); | 128 never_ever_ever_change_InstallerStage_values_bang); |
| 131 | 129 |
| 132 namespace switches { | 130 namespace switches { |
| 133 | |
| 134 extern const char kAutoLaunchChrome[]; | 131 extern const char kAutoLaunchChrome[]; |
| 135 extern const char kChrome[]; | 132 extern const char kChrome[]; |
| 136 extern const char kChromeAppHostDeprecated[]; // TODO(huangs): Remove by M27. | 133 extern const char kChromeAppHostDeprecated[]; // TODO(huangs): Remove by M27. |
| 137 extern const char kChromeAppLauncher[]; | 134 extern const char kChromeAppLauncher[]; |
| 138 extern const char kChromeFrame[]; | 135 extern const char kChromeFrame[]; |
| 139 extern const char kChromeFrameQuickEnable[]; | 136 extern const char kChromeFrameQuickEnable[]; |
| 140 extern const char kChromeFrameReadyMode[]; | 137 extern const char kChromeFrameReadyMode[]; |
| 141 extern const char kChromeFrameReadyModeOptIn[]; | 138 extern const char kChromeFrameReadyModeOptIn[]; |
| 142 extern const char kChromeFrameReadyModeTempOptOut[]; | 139 extern const char kChromeFrameReadyModeTempOptOut[]; |
| 143 extern const char kChromeFrameReadyModeEndTempOptOut[]; | 140 extern const char kChromeFrameReadyModeEndTempOptOut[]; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 173 extern const char kSystemLevel[]; | 170 extern const char kSystemLevel[]; |
| 174 extern const char kUninstall[]; | 171 extern const char kUninstall[]; |
| 175 extern const char kUpdateSetupExe[]; | 172 extern const char kUpdateSetupExe[]; |
| 176 extern const char kVerboseLogging[]; | 173 extern const char kVerboseLogging[]; |
| 177 extern const char kShowEula[]; | 174 extern const char kShowEula[]; |
| 178 extern const char kShowEulaForMetro[]; | 175 extern const char kShowEulaForMetro[]; |
| 179 extern const char kInactiveUserToast[]; | 176 extern const char kInactiveUserToast[]; |
| 180 extern const char kSystemLevelToast[]; | 177 extern const char kSystemLevelToast[]; |
| 181 extern const char kExperimentGroup[]; | 178 extern const char kExperimentGroup[]; |
| 182 extern const char kToastResultsKey[]; | 179 extern const char kToastResultsKey[]; |
| 183 extern const char kPatch[]; | |
| 184 extern const char kInputFile[]; | |
| 185 extern const char kPatchFile[]; | |
| 186 extern const char kOutputFile[]; | |
| 187 | |
| 188 } // namespace switches | 180 } // namespace switches |
| 189 | 181 |
| 190 extern const wchar_t kActiveSetupExe[]; | 182 extern const wchar_t kActiveSetupExe[]; |
| 191 extern const wchar_t kChromeAppHostExe[]; | 183 extern const wchar_t kChromeAppHostExe[]; |
| 192 extern const wchar_t kChromeDll[]; | 184 extern const wchar_t kChromeDll[]; |
| 193 extern const wchar_t kChromeExe[]; | 185 extern const wchar_t kChromeExe[]; |
| 194 extern const wchar_t kChromeFrameDll[]; | 186 extern const wchar_t kChromeFrameDll[]; |
| 195 extern const wchar_t kChromeFrameHelperExe[]; | 187 extern const wchar_t kChromeFrameHelperExe[]; |
| 196 extern const wchar_t kChromeFrameHelperWndClass[]; | 188 extern const wchar_t kChromeFrameHelperWndClass[]; |
| 197 extern const wchar_t kChromeFrameReadyModeField[]; | 189 extern const wchar_t kChromeFrameReadyModeField[]; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 // installed side-by-side. However, GoogleUpdateSettings::GetChromeChannel | 230 // installed side-by-side. However, GoogleUpdateSettings::GetChromeChannel |
| 239 // will return "canary" for that product. | 231 // will return "canary" for that product. |
| 240 extern const wchar_t kChromeChannelUnknown[]; | 232 extern const wchar_t kChromeChannelUnknown[]; |
| 241 extern const wchar_t kChromeChannelCanary[]; | 233 extern const wchar_t kChromeChannelCanary[]; |
| 242 extern const wchar_t kChromeChannelDev[]; | 234 extern const wchar_t kChromeChannelDev[]; |
| 243 extern const wchar_t kChromeChannelBeta[]; | 235 extern const wchar_t kChromeChannelBeta[]; |
| 244 extern const wchar_t kChromeChannelStable[]; | 236 extern const wchar_t kChromeChannelStable[]; |
| 245 | 237 |
| 246 extern const size_t kMaxAppModelIdLength; | 238 extern const size_t kMaxAppModelIdLength; |
| 247 | 239 |
| 248 // The range of error values for the installer, Courgette, and bsdiff is | |
| 249 // overlapping. These offset values disambiguate between different sets | |
| 250 // of errors by shifting the values up with the specified offset. | |
| 251 const int kCourgetteErrorOffset = 300; | |
| 252 const int kBsdiffErrorOffset = 600; | |
| 253 | |
| 254 // Arguments to --patch switch | |
| 255 extern const char kCourgette[]; | |
| 256 extern const char kBsdiff[]; | |
| 257 | |
| 258 } // namespace installer | 240 } // namespace installer |
| 259 | 241 |
| 260 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ | 242 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |
| OLD | NEW |