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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 91 UNSUPPORTED_OPTION, // 53. An unsupported legacy option was given. |
| 92 CPU_NOT_SUPPORTED, // 54. Current OS not supported |
92 // Friendly reminder: note the COMPILE_ASSERT below. | 93 // Friendly reminder: note the COMPILE_ASSERT below. |
93 }; | 94 }; |
94 | 95 |
95 | 96 |
96 // Existing InstallStatus values must not change. Always add to the end. | 97 // Existing InstallStatus values must not change. Always add to the end. |
97 COMPILE_ASSERT(installer::UNSUPPORTED_OPTION == 53, | 98 COMPILE_ASSERT(installer::CPU_NOT_SUPPORTED == 54, |
98 dont_change_enum); | 99 dont_change_enum); |
99 | 100 |
100 // The type of an update archive. | 101 // The type of an update archive. |
101 enum ArchiveType { | 102 enum ArchiveType { |
102 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. | 103 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. |
103 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. | 104 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. |
104 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. | 105 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. |
105 }; | 106 }; |
106 | 107 |
107 // Stages of an installation reported through Google Update on failure. | 108 // Stages of an installation reported through Google Update on failure. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 const int kCourgetteErrorOffset = 300; | 259 const int kCourgetteErrorOffset = 300; |
259 const int kBsdiffErrorOffset = 600; | 260 const int kBsdiffErrorOffset = 600; |
260 | 261 |
261 // Arguments to --patch switch | 262 // Arguments to --patch switch |
262 extern const char kCourgette[]; | 263 extern const char kCourgette[]; |
263 extern const char kBsdiff[]; | 264 extern const char kBsdiff[]; |
264 | 265 |
265 } // namespace installer | 266 } // namespace installer |
266 | 267 |
267 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ | 268 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |
OLD | NEW |