1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ipc/chromium/src/chrome/common/result_codes.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,48 @@ 1.4 +// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1.5 +// Use of this source code is governed by a BSD-style license that can be 1.6 +// found in the LICENSE file. 1.7 + 1.8 +#ifndef CHROME_COMMON_RESULT_CODES_H_ 1.9 +#define CHROME_COMMON_RESULT_CODES_H_ 1.10 + 1.11 +#include "base/process_util.h" 1.12 + 1.13 +// This file consolidates all the return codes for the browser and renderer 1.14 +// process. The return code is the value that: 1.15 +// a) is returned by main() or winmain(), or 1.16 +// b) specified in the call for ExitProcess() or TerminateProcess(), or 1.17 +// c) the exception value that causes a process to terminate. 1.18 +// 1.19 +// It is advisable to not use negative numbers because the Windows API returns 1.20 +// it as an unsigned long and the exception values have high numbers. For 1.21 +// example EXCEPTION_ACCESS_VIOLATION value is 0xC0000005. 1.22 + 1.23 +class ResultCodes { 1.24 + public: 1.25 + enum ExitCode { 1.26 + NORMAL_EXIT = base::PROCESS_END_NORMAL_TERMINATON, 1.27 + TASKMAN_KILL = base::PROCESS_END_KILLED_BY_USER, 1.28 + HUNG = base::PROCESS_END_PROCESS_WAS_HUNG, 1.29 + INVALID_CMDLINE_URL, // An invalid command line url was given. 1.30 + SBOX_INIT_FAILED, // The sandbox could not be initialized. 1.31 + GOOGLE_UPDATE_INIT_FAILED, // The Google Update client stub init failed. 1.32 + GOOGLE_UPDATE_LAUNCH_FAILED,// Google Update could not launch chrome DLL. 1.33 + BAD_PROCESS_TYPE, // The process is of an unknown type. 1.34 + MISSING_PATH, // An critical chrome path is missing. 1.35 + MISSING_DATA, // A critical chrome file is missing. 1.36 + SHELL_INTEGRATION_FAILED, // Failed to make Chrome default browser. 1.37 + MACHINE_LEVEL_INSTALL_EXISTS, // Machine level install exists 1.38 + UNINSTALL_DELETE_FILE_ERROR,// Error while deleting shortcuts. 1.39 + UNINSTALL_CHROME_ALIVE, // Uninstall detected another chrome instance. 1.40 + UNINSTALL_NO_SURVEY, // Do not launch survey after uninstall. 1.41 + UNINSTALL_USER_CANCEL, // The user changed her mind. 1.42 + UNINSTALL_DELETE_PROFILE, // Delete profile as well during uninstall. 1.43 + UNSUPPORTED_PARAM, // Command line parameter is not supported. 1.44 + KILLED_BAD_MESSAGE, // A bad message caused the process termination. 1.45 + IMPORTER_CANCEL, // The user canceled the browser import. 1.46 + IMPORTER_HUNG, // Browser import hung and was killed. 1.47 + EXIT_LAST_CODE // Last return code (keep it last). 1.48 + }; 1.49 +}; 1.50 + 1.51 +#endif // CHROME_COMMON_RESULT_CODES_H_