| Index: content/common/result_codes.h
|
| diff --git a/content/common/result_codes.h b/content/common/result_codes.h
|
| index edfb8b693798cd3df9a91180fbcd24a09df634de..6a341dd800da3165836ebb2d7bb676e5df7ca6fc 100644
|
| --- a/content/common/result_codes.h
|
| +++ b/content/common/result_codes.h
|
| @@ -18,25 +18,49 @@
|
| // it as an unsigned long and the exception values have high numbers. For
|
| // example EXCEPTION_ACCESS_VIOLATION value is 0xC0000005.
|
|
|
| -namespace content {
|
| +class ResultCodes {
|
| + public:
|
| + enum ExitCode {
|
| + NORMAL_EXIT = 0, // Process terminated normally.
|
| + KILLED = 1, // Process was killed by user or system.
|
| + HUNG = 2, // Process hung.
|
| + INVALID_CMDLINE_URL, // An invalid command line url was given.
|
| + SBOX_INIT_FAILED, // The sandbox could not be initialized.
|
| + GOOGLE_UPDATE_INIT_FAILED, // The Google Update client stub init failed.
|
| + GOOGLE_UPDATE_LAUNCH_FAILED,// Google Update could not launch chrome DLL.
|
| + BAD_PROCESS_TYPE, // The process is of an unknown type.
|
| + MISSING_PATH, // An critical chrome path is missing.
|
| + MISSING_DATA, // A critical chrome file is missing.
|
| + SHELL_INTEGRATION_FAILED, // Failed to make Chrome default browser.
|
| + MACHINE_LEVEL_INSTALL_EXISTS, // Machine level install exists
|
| + UNINSTALL_DELETE_FILE_ERROR,// Error while deleting shortcuts.
|
| + UNINSTALL_CHROME_ALIVE, // Uninstall detected another chrome instance.
|
| + UNINSTALL_NO_SURVEY, // Do not launch survey after uninstall.
|
| + UNINSTALL_USER_CANCEL, // The user changed her mind.
|
| + UNINSTALL_DELETE_PROFILE, // Delete profile as well during uninstall.
|
| + UNSUPPORTED_PARAM, // Command line parameter is not supported.
|
| + KILLED_BAD_MESSAGE, // A bad message caused the process termination.
|
| + IMPORTER_HUNG, // Browser import hung and was killed.
|
| + RESPAWN_FAILED, // Trying to restart the browser we crashed.
|
|
|
| -enum ResultCode {
|
| - // Process terminated normally.
|
| - RESULT_CODE_NORMAL_EXIT = 0,
|
| + NORMAL_EXIT_EXP1, // The EXP1, EXP2, EXP3, EXP4 are generic codes
|
| + NORMAL_EXIT_EXP2, // used to communicate some simple outcome back
|
| + NORMAL_EXIT_EXP3, // to the process that launched us. This is
|
| + NORMAL_EXIT_EXP4, // used for experiments and the actual meaning
|
| + // depends on the experiment.
|
|
|
| - // Process was killed by user or system.
|
| - RESULT_CODE_KILLED = 1,
|
| + NORMAL_EXIT_CANCEL, // For experiments this return code means that
|
| + // the user canceled causes the did_run "dr"
|
| + // signal to be reset so this chrome run does
|
| + // not count as active chrome usage.
|
|
|
| - // Process hung.
|
| - RESULT_CODE_HUNG = 2,
|
| + PROFILE_IN_USE, // The profile was in use on another host.
|
|
|
| - // A bad message caused the process termination.
|
| - RESULT_CODE_KILLED_BAD_MESSAGE,
|
| + UNINSTALL_EXTENSION_ERROR, // Failed to silently uninstall an extension.
|
| + PACK_EXTENSION_ERROR, // Failed to pack an extension via the cmd line.
|
|
|
| - // Last return code (keep this last).
|
| - RESULT_CODE_LAST_CODE
|
| + EXIT_LAST_CODE // Last return code (keep it last).
|
| + };
|
| };
|
|
|
| -} // namespace content
|
| -
|
| #endif // CONTENT_COMMON_RESULT_CODES_H_
|
|
|