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 |
11 #include <stddef.h> | 11 #include <stddef.h> |
12 | 12 |
13 namespace installer { | 13 namespace installer { |
14 | 14 |
15 // Return status of installer. Values in this enum must not change. Always add | 15 // Return status of installer. Values in this enum must not change. Always add |
16 // to the end. When removing an unused value, retain the deprecated name and | 16 // to the end. When removing an unused value, retain the deprecated name and |
17 // value in a comment for posterity's sake, but take the liberty of removing the | 17 // value in a comment for posterity's sake, but take the liberty of removing the |
18 // old doc string. | 18 // old doc string. |
19 enum InstallStatus { | 19 enum InstallStatus { |
20 FIRST_INSTALL_SUCCESS = 0, // First install of Chrome succeeded. | 20 FIRST_INSTALL_SUCCESS = 0, // First install of Chrome succeeded. |
21 INSTALL_REPAIRED = 1, // Same version reinstalled for repair. | 21 INSTALL_REPAIRED = 1, // Same version reinstalled for repair. |
22 NEW_VERSION_UPDATED = 2, // Chrome successfully updated to new version. | 22 NEW_VERSION_UPDATED = 2, // Chrome successfully updated to new version. |
23 EXISTING_VERSION_LAUNCHED = 3, // No work done; launched existing Chrome. | 23 EXISTING_VERSION_LAUNCHED = 3, // No work done; launched existing Chrome. |
24 HIGHER_VERSION_EXISTS = 4, // Higher version of Chrome already exists | 24 HIGHER_VERSION_EXISTS = 4, // Higher version of Chrome already exists |
25 USER_LEVEL_INSTALL_EXISTS = 5, // User level install already exists. | 25 USER_LEVEL_INSTALL_EXISTS = 5, // User level install already exists. |
26 SYSTEM_LEVEL_INSTALL_EXISTS = 6, // Machine level install already exists. | 26 SYSTEM_LEVEL_INSTALL_EXISTS = 6, // Machine level install already exists. |
27 INSTALL_FAILED = 7, // Install/update failed. | 27 INSTALL_FAILED = 7, // Install/update failed. |
28 SETUP_PATCH_FAILED = 8, // Failed to patch setup.exe. | 28 SETUP_PATCH_FAILED = 8, // Failed to patch setup.exe. |
29 OS_NOT_SUPPORTED = 9, // Current OS not supported. | 29 OS_NOT_SUPPORTED = 9, // Current OS not supported. |
30 OS_ERROR = 10, // OS API call failed. | 30 OS_ERROR = 10, // OS API call failed. |
31 TEMP_DIR_FAILED = 11, // Unable to get Temp directory. | 31 TEMP_DIR_FAILED = 11, // Unable to get Temp directory. |
32 UNCOMPRESSION_FAILED = 12, // Failed to uncompress Chrome archive. | 32 UNCOMPRESSION_FAILED = 12, // Failed to uncompress Chrome archive. |
33 INVALID_ARCHIVE = 13, // Something wrong with the installer archive. | 33 INVALID_ARCHIVE = 13, // Something wrong with the installer archive. |
34 INSUFFICIENT_RIGHTS = 14, // User trying system level install is not Admin. | 34 INSUFFICIENT_RIGHTS = 14, // User trying system level install is not Admin. |
35 CHROME_NOT_INSTALLED = 15, // Chrome not installed (returned in case of | 35 CHROME_NOT_INSTALLED = 15, // Chrome not installed (returned in case of |
36 // uninstall). | 36 // uninstall). |
37 CHROME_RUNNING = 16, // Chrome currently running (when trying to | 37 CHROME_RUNNING = 16, // Chrome currently running (when trying to |
38 // uninstall). | 38 // uninstall). |
39 UNINSTALL_CONFIRMED = 17, // User has confirmed Chrome uninstall. | 39 UNINSTALL_CONFIRMED = 17, // User has confirmed Chrome uninstall. |
40 UNINSTALL_DELETE_PROFILE = 18, // User okayed uninstall and profile deletion. | 40 UNINSTALL_DELETE_PROFILE = 18, // User okayed uninstall and profile deletion. |
41 UNINSTALL_SUCCESSFUL = 19, // Chrome successfully uninstalled. | 41 UNINSTALL_SUCCESSFUL = 19, // Chrome successfully uninstalled. |
42 UNINSTALL_FAILED = 20, // Chrome uninstallation failed. | 42 UNINSTALL_FAILED = 20, // Chrome uninstallation failed. |
43 UNINSTALL_CANCELLED = 21, // User cancelled Chrome uninstallation. | 43 UNINSTALL_CANCELLED = 21, // User cancelled Chrome uninstallation. |
44 UNKNOWN_STATUS = 22, // Unknown status (this should never happen). | 44 UNKNOWN_STATUS = 22, // Unknown status (this should never happen). |
45 RENAME_SUCCESSFUL = 23, // Rename of new_chrome.exe to chrome.exe worked. | 45 RENAME_SUCCESSFUL = 23, // Rename of new_chrome.exe to chrome.exe worked. |
46 RENAME_FAILED = 24, // Rename of new_chrome.exe failed. | 46 RENAME_FAILED = 24, // Rename of new_chrome.exe failed. |
47 EULA_REJECTED = 25, // EULA dialog was not accepted by user. | 47 EULA_REJECTED = 25, // EULA dialog was not accepted by user. |
48 EULA_ACCEPTED = 26, // EULA dialog was accepted by user. | 48 EULA_ACCEPTED = 26, // EULA dialog was accepted by user. |
49 EULA_ACCEPTED_OPT_IN = 27, // EULA accepted with the crash option selected. | 49 EULA_ACCEPTED_OPT_IN = 27, // EULA accepted with the crash option selected. |
50 INSTALL_DIR_IN_USE = 28, // Installation directory is in use by another | 50 INSTALL_DIR_IN_USE = 28, // Installation directory is in use by another |
51 // process | 51 // process |
52 UNINSTALL_REQUIRES_REBOOT = 29, // Uninstallation required a reboot. | 52 UNINSTALL_REQUIRES_REBOOT = 29, // Uninstallation required a reboot. |
53 IN_USE_UPDATED = 30, // Chrome successfully updated but old version | 53 IN_USE_UPDATED = 30, // Chrome successfully updated but old version |
54 // running. | 54 // running. |
55 SAME_VERSION_REPAIR_FAILED = 31, // Chrome repair failed as Chrome was | 55 SAME_VERSION_REPAIR_FAILED = 31, // Chrome repair failed as Chrome was |
56 // running. | 56 // running. |
57 REENTRY_SYS_UPDATE = 32, // Setup has been re-launched as the interactive | 57 REENTRY_SYS_UPDATE = 32, // Setup has been re-launched as the interactive |
58 // user. | 58 // user. |
59 SXS_OPTION_NOT_SUPPORTED = 33, // The chrome-sxs option provided does not | 59 SXS_OPTION_NOT_SUPPORTED = 33, // The chrome-sxs option provided does not |
60 // work with other command line options. | 60 // work with other command line options. |
61 // NON_MULTI_INSTALLATION_EXISTS = 34, | 61 // NON_MULTI_INSTALLATION_EXISTS = 34, |
62 // MULTI_INSTALLATION_EXISTS = 35, | 62 // MULTI_INSTALLATION_EXISTS = 35, |
63 // READY_MODE_OPT_IN_FAILED = 36, | 63 // READY_MODE_OPT_IN_FAILED = 36, |
64 // READY_MODE_TEMP_OPT_OUT_FAILED = 37, | 64 // READY_MODE_TEMP_OPT_OUT_FAILED = 37, |
65 // READY_MODE_END_TEMP_OPT_OUT_FAILED = 38, | 65 // READY_MODE_END_TEMP_OPT_OUT_FAILED = 38, |
66 // CONFLICTING_CHANNEL_EXISTS = 39, | 66 // CONFLICTING_CHANNEL_EXISTS = 39, |
67 // READY_MODE_REQUIRES_CHROME = 40, | 67 // READY_MODE_REQUIRES_CHROME = 40, |
68 // APP_HOST_REQUIRES_MULTI_INSTALL = 41, | 68 // APP_HOST_REQUIRES_MULTI_INSTALL = 41, |
69 APPLY_DIFF_PATCH_FAILED = 42, // Failed to apply a diff patch. | 69 APPLY_DIFF_PATCH_FAILED = 42, // Failed to apply a diff patch. |
70 // INCONSISTENT_UPDATE_POLICY = 43, | 70 // INCONSISTENT_UPDATE_POLICY = 43, |
71 // APP_HOST_REQUIRES_USER_LEVEL = 44, | 71 // APP_HOST_REQUIRES_USER_LEVEL = 44, |
72 // APP_HOST_REQUIRES_BINARIES = 45, | 72 // APP_HOST_REQUIRES_BINARIES = 45, |
73 // INSTALL_OF_GOOGLE_UPDATE_FAILED = 46, | 73 // INSTALL_OF_GOOGLE_UPDATE_FAILED = 46, |
74 INVALID_STATE_FOR_OPTION = 47, // A non-install option was called with an | 74 INVALID_STATE_FOR_OPTION = 47, // A non-install option was called with an |
75 // invalid installer state. | 75 // invalid installer state. |
76 // WAIT_FOR_EXISTING_FAILED = 48, | 76 // WAIT_FOR_EXISTING_FAILED = 48, |
77 PATCH_INVALID_ARGUMENTS = 49, // The arguments of --patch were missing or | 77 PATCH_INVALID_ARGUMENTS = 49, // The arguments of --patch were missing or |
78 // they were invalid for any reason. | 78 // they were invalid for any reason. |
79 DIFF_PATCH_SOURCE_MISSING = 50, // No previous version archive found for | 79 DIFF_PATCH_SOURCE_MISSING = 50, // No previous version archive found for |
80 // differential update. | 80 // differential update. |
81 UNUSED_BINARIES = 51, // No multi-install products to update. The | 81 UNUSED_BINARIES = 51, // No multi-install products to update. The |
82 // binaries will be uninstalled if they are not | 82 // binaries will be uninstalled if they are not |
grt (UTC plus 2)
2016/09/01 21:22:41
gah, this is ugly, please ignore "git cl format" a
fdoray
2016/09/06 17:29:39
Done.
| |
83 // in use. | 83 // in use. |
84 UNUSED_BINARIES_UNINSTALLED = 52, // The binaries were uninstalled. | 84 UNUSED_BINARIES_UNINSTALLED = 52, // The binaries were uninstalled. |
85 UNSUPPORTED_OPTION = 53, // An unsupported legacy option was given. | 85 UNSUPPORTED_OPTION = 53, // An unsupported legacy option was given. |
86 CPU_NOT_SUPPORTED = 54, // Current OS not supported | 86 CPU_NOT_SUPPORTED = 54, // Current OS not supported |
87 REENABLE_UPDATES_SUCCEEDED = 55, // Autoupdates are now enabled. | 87 REENABLE_UPDATES_SUCCEEDED = 55, // Autoupdates are now enabled. |
88 REENABLE_UPDATES_FAILED = 56, // Autoupdates could not be enabled. | 88 REENABLE_UPDATES_FAILED = 56, // Autoupdates could not be enabled. |
89 UNPACKING_FAILED = 57, // Unpacking the (possibly patched) uncompressed | 89 UNPACKING_FAILED = 57, // Unpacking the (possibly patched) uncompressed |
90 // archive failed. | 90 // archive failed. |
91 IN_USE_DOWNGRADE = 58, // Successfully downgrade chrome but current | 91 IN_USE_DOWNGRADE = 58, // Successfully downgrade chrome but current |
92 // version is still running. | 92 // version is still running. |
93 OLD_VERSION_DOWNGRADE = 59, // Successfully downgrade chrome to an older | 93 OLD_VERSION_DOWNGRADE = 59, // Successfully downgrade chrome to an older |
94 // version. | 94 // version. |
95 SETUP_SINGLETON_ACQUISITION_FAILED = 60, // The setup process could not | |
96 // acquire the exclusive right to | |
97 // modify the Chrome installation. | |
95 | 98 |
96 MAX_INSTALL_STATUS = 60, // Bump this out to make space for new results. | 99 MAX_INSTALL_STATUS = 61, // Bump this out to make space for new results. |
97 }; | 100 }; |
98 | 101 |
99 // The type of an update archive. | 102 // The type of an update archive. |
100 enum ArchiveType { | 103 enum ArchiveType { |
101 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. | 104 UNKNOWN_ARCHIVE_TYPE, // Unknown or uninitialized. |
102 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. | 105 FULL_ARCHIVE_TYPE, // Full chrome.7z archive. |
103 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. | 106 INCREMENTAL_ARCHIVE_TYPE // Incremental or differential archive. |
104 }; | 107 }; |
105 | 108 |
106 // Stages of an installation from which a progress indication is derived. | 109 // Stages of an installation from which a progress indication is derived. |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
251 extern const char kCourgette[]; | 254 extern const char kCourgette[]; |
252 extern const char kBsdiff[]; | 255 extern const char kBsdiff[]; |
253 | 256 |
254 // Name of the allocator (and associated file) for storing histograms to be | 257 // Name of the allocator (and associated file) for storing histograms to be |
255 // reported by Chrome during its next upload. | 258 // reported by Chrome during its next upload. |
256 extern const char kSetupHistogramAllocatorName[]; | 259 extern const char kSetupHistogramAllocatorName[]; |
257 | 260 |
258 } // namespace installer | 261 } // namespace installer |
259 | 262 |
260 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ | 263 #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |
OLD | NEW |