Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: chrome/app/result_codes.h

Issue 10895: Add Terminate() to the Process object, have RenderProcessHost use this to avo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/trace_event.cc ('k') | chrome/browser/browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_APP_RESULT_CODES_H__ 5 #ifndef CHROME_APP_RESULT_CODES_H__
6 #define CHROME_APP_RESULT_CODES_H__ 6 #define CHROME_APP_RESULT_CODES_H__
7 7
8 #include "base/process_util.h" 8 #include "base/process_util.h"
9 9
10 // This file consolidates all the return codes for the browser and renderer 10 // This file consolidates all the return codes for the browser and renderer
11 // process. The return code is the value that: 11 // process. The return code is the value that:
12 // a) is returned by main() or winmain(), or 12 // a) is returned by main() or winmain(), or
13 // b) specified in the call for ExitProcess() or TerminateProcess(), or 13 // b) specified in the call for ExitProcess() or TerminateProcess(), or
14 // c) the exception value that causes a process to terminate. 14 // c) the exception value that causes a process to terminate.
15 // 15 //
16 // It is advisable to not use negative numbers because the Windows API returns 16 // It is advisable to not use negative numbers because the Windows API returns
17 // it as an unsigned long and the exception values have high numbers. For 17 // it as an unsigned long and the exception values have high numbers. For
18 // example EXCEPTION_ACCESS_VIOLATION value is 0xC0000005. 18 // example EXCEPTION_ACCESS_VIOLATION value is 0xC0000005.
19 19
20 class ResultCodes { 20 class ResultCodes {
21 public: 21 public:
22 enum ExitCode { 22 enum ExitCode {
23 NORMAL_EXIT = process_util::PROCESS_END_NORMAL_TERMINATON, 23 NORMAL_EXIT = base::PROCESS_END_NORMAL_TERMINATON,
24 TASKMAN_KILL = process_util::PROCESS_END_KILLED_BY_USER, 24 TASKMAN_KILL = base::PROCESS_END_KILLED_BY_USER,
25 HUNG = process_util::PROCESS_END_PROCESS_WAS_HUNG, 25 HUNG = base::PROCESS_END_PROCESS_WAS_HUNG,
26 INVALID_CMDLINE_URL, // An invalid command line url was given. 26 INVALID_CMDLINE_URL, // An invalid command line url was given.
27 SBOX_INIT_FAILED, // The sandbox could not be initialized. 27 SBOX_INIT_FAILED, // The sandbox could not be initialized.
28 GOOGLE_UPDATE_INIT_FAILED, // The Google Update client stub init failed. 28 GOOGLE_UPDATE_INIT_FAILED, // The Google Update client stub init failed.
29 GOOGLE_UPDATE_LAUNCH_FAILED,// Google Update could not launch chrome DLL. 29 GOOGLE_UPDATE_LAUNCH_FAILED,// Google Update could not launch chrome DLL.
30 BAD_PROCESS_TYPE, // The process is of an unknown type. 30 BAD_PROCESS_TYPE, // The process is of an unknown type.
31 MISSING_PATH, // An critical chrome path is missing. 31 MISSING_PATH, // An critical chrome path is missing.
32 MISSING_DATA, // A critical chrome file is missing. 32 MISSING_DATA, // A critical chrome file is missing.
33 SHELL_INTEGRATION_FAILED, // Failed to make Chrome default browser. 33 SHELL_INTEGRATION_FAILED, // Failed to make Chrome default browser.
34 MACHINE_LEVEL_INSTALL_EXISTS, // Machine level install exists 34 MACHINE_LEVEL_INSTALL_EXISTS, // Machine level install exists
35 UNINSTALL_DELETE_FILE_ERROR,// Error while deleting shortcuts. 35 UNINSTALL_DELETE_FILE_ERROR,// Error while deleting shortcuts.
36 UNINSTALL_CHROME_ALIVE, // Uninstall detected another chrome instance. 36 UNINSTALL_CHROME_ALIVE, // Uninstall detected another chrome instance.
37 UNINSTALL_NO_SURVEY, // Do not launch survey after uninstall. 37 UNINSTALL_NO_SURVEY, // Do not launch survey after uninstall.
38 UNINSTALL_USER_CANCEL, // The user changed her mind. 38 UNINSTALL_USER_CANCEL, // The user changed her mind.
39 UNSUPPORTED_PARAM, // Command line parameter is not supported. 39 UNSUPPORTED_PARAM, // Command line parameter is not supported.
40 KILLED_BAD_MESSAGE, // A bad message caused the process termination. 40 KILLED_BAD_MESSAGE, // A bad message caused the process termination.
41 IMPORTER_CANCEL, // The user canceled the browser import. 41 IMPORTER_CANCEL, // The user canceled the browser import.
42 IMPORTER_HUNG, // Browser import hung and was killed. 42 IMPORTER_HUNG, // Browser import hung and was killed.
43 EXIT_LAST_CODE // Last return code (keep it last). 43 EXIT_LAST_CODE // Last return code (keep it last).
44 }; 44 };
45 }; 45 };
46 46
47 #endif // CHROME_APP_RESULT_CODES_H__ 47 #endif // CHROME_APP_RESULT_CODES_H__
48 48
OLDNEW
« no previous file with comments | « base/trace_event.cc ('k') | chrome/browser/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698