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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // of Chrome Frame. | 69 // of Chrome Frame. |
70 CONFLICTING_CHANNEL_EXISTS, // 39. A multi-install product on a different | 70 CONFLICTING_CHANNEL_EXISTS, // 39. A multi-install product on a different |
71 // update channel exists. | 71 // update channel exists. |
72 READY_MODE_REQUIRES_CHROME, // 40. Chrome Frame in ready-mode requires Chrome | 72 READY_MODE_REQUIRES_CHROME, // 40. Chrome Frame in ready-mode requires Chrome |
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 INVALID_STATE_FOR_OPTION, // 46. A non-install option was called with an |
| 80 // invalid installer state. |
79 // Friendly reminder: note the COMPILE_ASSERT below. | 81 // Friendly reminder: note the COMPILE_ASSERT below. |
80 }; | 82 }; |
81 | 83 |
82 | 84 |
83 // Existing InstallStatus values must not change. Always add to the end. | 85 // Existing InstallStatus values must not change. Always add to the end. |
84 COMPILE_ASSERT(installer::APP_HOST_REQUIRES_BINARIES == 45, | 86 COMPILE_ASSERT(installer::INVALID_STATE_FOR_OPTION == 46, |
85 dont_change_enum); | 87 dont_change_enum); |
86 | 88 |
87 // The type of an update archive. | 89 // The type of an update archive. |
88 enum ArchiveType { | 90 enum ArchiveType { |
89 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. | 91 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. |
90 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. | 92 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. |
91 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. | 93 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. |
92 }; | 94 }; |
93 | 95 |
94 // Stages of an installation reported through Google Update on failure. | 96 // Stages of an installation reported through Google Update on failure. |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 extern const wchar_t kChromeChannelCanary[]; | 223 extern const wchar_t kChromeChannelCanary[]; |
222 extern const wchar_t kChromeChannelDev[]; | 224 extern const wchar_t kChromeChannelDev[]; |
223 extern const wchar_t kChromeChannelBeta[]; | 225 extern const wchar_t kChromeChannelBeta[]; |
224 extern const wchar_t kChromeChannelStable[]; | 226 extern const wchar_t kChromeChannelStable[]; |
225 | 227 |
226 extern const size_t kMaxAppModelIdLength; | 228 extern const size_t kMaxAppModelIdLength; |
227 | 229 |
228 } // namespace installer | 230 } // namespace installer |
229 | 231 |
230 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ | 232 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |
OLD | NEW |