OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_COMMON_RESULT_CODES_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_RESULT_CODES_H_ |
6 #define CONTENT_COMMON_RESULT_CODES_H_ | 6 #define CONTENT_PUBLIC_COMMON_RESULT_CODES_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/process_util.h" | |
10 | |
11 // This file consolidates all the return codes for the browser and renderer | 9 // This file consolidates all the return codes for the browser and renderer |
12 // process. The return code is the value that: | 10 // process. The return code is the value that: |
13 // a) is returned by main() or winmain(), or | 11 // a) is returned by main() or winmain(), or |
14 // b) specified in the call for ExitProcess() or TerminateProcess(), or | 12 // b) specified in the call for ExitProcess() or TerminateProcess(), or |
15 // c) the exception value that causes a process to terminate. | 13 // c) the exception value that causes a process to terminate. |
16 // | 14 // |
17 // It is advisable to not use negative numbers because the Windows API returns | 15 // It is advisable to not use negative numbers because the Windows API returns |
18 // it as an unsigned long and the exception values have high numbers. For | 16 // it as an unsigned long and the exception values have high numbers. For |
19 // example EXCEPTION_ACCESS_VIOLATION value is 0xC0000005. | 17 // example EXCEPTION_ACCESS_VIOLATION value is 0xC0000005. |
20 | 18 |
(...skipping 11 matching lines...) Expand all Loading... |
32 | 30 |
33 // A bad message caused the process termination. | 31 // A bad message caused the process termination. |
34 RESULT_CODE_KILLED_BAD_MESSAGE, | 32 RESULT_CODE_KILLED_BAD_MESSAGE, |
35 | 33 |
36 // Last return code (keep this last). | 34 // Last return code (keep this last). |
37 RESULT_CODE_LAST_CODE | 35 RESULT_CODE_LAST_CODE |
38 }; | 36 }; |
39 | 37 |
40 } // namespace content | 38 } // namespace content |
41 | 39 |
42 #endif // CONTENT_COMMON_RESULT_CODES_H_ | 40 #endif // CONTENT_PUBLIC_COMMON_RESULT_CODES_H_ |
OLD | NEW |