| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // Intentionally no include guards because this file is meant to be included | 5 // Intentionally no include guards because this file is meant to be included |
| 6 // inside a macro to generate enum values. | 6 // inside a macro to generate enum values. |
| 7 | 7 |
| 8 // This file consolidates all the return codes for the browser and renderer | 8 // This file consolidates all the return codes for the browser and renderer |
| 9 // process. The return code is the value that: | 9 // process. The return code is the value that: |
| 10 // a) is returned by main() or winmain(), or | 10 // a) is returned by main() or winmain(), or |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 RESULT_CODE(NORMAL_EXIT, 0) | 21 RESULT_CODE(NORMAL_EXIT, 0) |
| 22 | 22 |
| 23 // Process was killed by user or system. | 23 // Process was killed by user or system. |
| 24 RESULT_CODE(KILLED, 1) | 24 RESULT_CODE(KILLED, 1) |
| 25 | 25 |
| 26 // Process hung. | 26 // Process hung. |
| 27 RESULT_CODE(HUNG, 2) | 27 RESULT_CODE(HUNG, 2) |
| 28 | 28 |
| 29 // A bad message caused the process termination. | 29 // A bad message caused the process termination. |
| 30 RESULT_CODE(KILLED_BAD_MESSAGE, 3) | 30 RESULT_CODE(KILLED_BAD_MESSAGE, 3) |
| 31 | |
| 32 #if defined(OS_ANDROID) | |
| 33 // Failed to register JNI methods. | |
| 34 RESULT_CODE(FAILED_TO_REGISTER_JNI, 4) | |
| 35 | |
| 36 // Failed to find and load the native library. | |
| 37 RESULT_CODE(NATIVE_LIBRARY_LOAD_FAILED, 5) | |
| 38 | |
| 39 // Wrong version of library loaded | |
| 40 RESULT_CODE(NATIVE_LIBRARY_WRONG_VERSION, 6) | |
| 41 | |
| 42 // Native library startup failed | |
| 43 RESULT_CODE(NATIVE_STARTUP_FAILED, 7) | |
| 44 #endif | |
| OLD | NEW |