| Index: content/public/common/result_codes.h
|
| diff --git a/content/public/common/result_codes.h b/content/public/common/result_codes.h
|
| index b3c4a6b7299fd1fecb633656f63062e57cb484a0..1bf625d0157c6a233c214162118567045ec52427 100644
|
| --- a/content/public/common/result_codes.h
|
| +++ b/content/public/common/result_codes.h
|
| @@ -5,35 +5,13 @@
|
| #ifndef CONTENT_PUBLIC_COMMON_RESULT_CODES_H_
|
| #define CONTENT_PUBLIC_COMMON_RESULT_CODES_H_
|
|
|
| -// This file consolidates all the return codes for the browser and renderer
|
| -// process. The return code is the value that:
|
| -// a) is returned by main() or winmain(), or
|
| -// b) specified in the call for ExitProcess() or TerminateProcess(), or
|
| -// c) the exception value that causes a process to terminate.
|
| -//
|
| -// It is advisable to not use negative numbers because the Windows API returns
|
| -// it as an unsigned long and the exception values have high numbers. For
|
| -// example EXCEPTION_ACCESS_VIOLATION value is 0xC0000005.
|
| -
|
| namespace content {
|
|
|
| enum ResultCode {
|
| - // Process terminated normally.
|
| - RESULT_CODE_NORMAL_EXIT = 0,
|
| -
|
| - // Process was killed by user or system.
|
| - RESULT_CODE_KILLED = 1,
|
| -
|
| - // Process hung.
|
| - RESULT_CODE_HUNG = 2,
|
| -
|
| - // A bad message caused the process termination.
|
| - RESULT_CODE_KILLED_BAD_MESSAGE = 3,
|
|
|
| -#if defined(OS_ANDROID)
|
| - // Failed to register JNI methods.
|
| - RESULT_CODE_FAILED_TO_REGISTER_JNI = 4,
|
| -#endif
|
| +#define RESULT_CODE(label, value) RESULT_CODE_ ## label = value,
|
| +#include "content/public/common/result_codes_list.h"
|
| +#undef RESULT_CODE
|
|
|
| // Last return code (keep this last).
|
| RESULT_CODE_LAST_CODE
|
|
|