Chromium Code Reviews| Index: content/public/common/result_codes_list.h |
| diff --git a/content/public/common/result_codes_list.h b/content/public/common/result_codes_list.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..38dcf764aa791ac12630021f030dc4b897116972 |
| --- /dev/null |
| +++ b/content/public/common/result_codes_list.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// Intentionally no include guards because this file is meant to be included |
| +// inside a macro to generate enum values. |
| + |
| +// 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. |
| + |
| +// 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) |
| + |
| +// Failed to register JNI methods. (Android) |
|
Yaron
2013/03/05 21:30:20
Can't use #if defined(OS_ANDROID) guards because t
michaelbai
2013/03/05 21:44:59
Did you mean we didn't defined OS_ANDROID when gen
Yaron
2013/03/05 22:05:04
I figured it's questionable utility since it's not
michaelbai
2013/03/05 22:07:48
Thanks
On 2013/03/05 22:05:04, Yaron wrote:
|
| +RESULT_CODE(FAILED_TO_REGISTER_JNI, 4) |
| + |
| +// Failed to find and load the native library. (Android) |
| +RESULT_CODE(NATIVE_LIBRARY_LOAD_FAILED, 5) |
| + |