ipc/chromium/src/chrome/common/result_codes.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
michael@0 2 // Use of this source code is governed by a BSD-style license that can be
michael@0 3 // found in the LICENSE file.
michael@0 4
michael@0 5 #ifndef CHROME_COMMON_RESULT_CODES_H_
michael@0 6 #define CHROME_COMMON_RESULT_CODES_H_
michael@0 7
michael@0 8 #include "base/process_util.h"
michael@0 9
michael@0 10 // This file consolidates all the return codes for the browser and renderer
michael@0 11 // process. The return code is the value that:
michael@0 12 // a) is returned by main() or winmain(), or
michael@0 13 // b) specified in the call for ExitProcess() or TerminateProcess(), or
michael@0 14 // c) the exception value that causes a process to terminate.
michael@0 15 //
michael@0 16 // It is advisable to not use negative numbers because the Windows API returns
michael@0 17 // it as an unsigned long and the exception values have high numbers. For
michael@0 18 // example EXCEPTION_ACCESS_VIOLATION value is 0xC0000005.
michael@0 19
michael@0 20 class ResultCodes {
michael@0 21 public:
michael@0 22 enum ExitCode {
michael@0 23 NORMAL_EXIT = base::PROCESS_END_NORMAL_TERMINATON,
michael@0 24 TASKMAN_KILL = base::PROCESS_END_KILLED_BY_USER,
michael@0 25 HUNG = base::PROCESS_END_PROCESS_WAS_HUNG,
michael@0 26 INVALID_CMDLINE_URL, // An invalid command line url was given.
michael@0 27 SBOX_INIT_FAILED, // The sandbox could not be initialized.
michael@0 28 GOOGLE_UPDATE_INIT_FAILED, // The Google Update client stub init failed.
michael@0 29 GOOGLE_UPDATE_LAUNCH_FAILED,// Google Update could not launch chrome DLL.
michael@0 30 BAD_PROCESS_TYPE, // The process is of an unknown type.
michael@0 31 MISSING_PATH, // An critical chrome path is missing.
michael@0 32 MISSING_DATA, // A critical chrome file is missing.
michael@0 33 SHELL_INTEGRATION_FAILED, // Failed to make Chrome default browser.
michael@0 34 MACHINE_LEVEL_INSTALL_EXISTS, // Machine level install exists
michael@0 35 UNINSTALL_DELETE_FILE_ERROR,// Error while deleting shortcuts.
michael@0 36 UNINSTALL_CHROME_ALIVE, // Uninstall detected another chrome instance.
michael@0 37 UNINSTALL_NO_SURVEY, // Do not launch survey after uninstall.
michael@0 38 UNINSTALL_USER_CANCEL, // The user changed her mind.
michael@0 39 UNINSTALL_DELETE_PROFILE, // Delete profile as well during uninstall.
michael@0 40 UNSUPPORTED_PARAM, // Command line parameter is not supported.
michael@0 41 KILLED_BAD_MESSAGE, // A bad message caused the process termination.
michael@0 42 IMPORTER_CANCEL, // The user canceled the browser import.
michael@0 43 IMPORTER_HUNG, // Browser import hung and was killed.
michael@0 44 EXIT_LAST_CODE // Last return code (keep it last).
michael@0 45 };
michael@0 46 };
michael@0 47
michael@0 48 #endif // CHROME_COMMON_RESULT_CODES_H_

mercurial