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

Side by Side Diff: content/public/common/result_codes_list.h

Issue 12464004: Handle LibraryLoader error from the renderer process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change to use ProcessInitException Created 7 years, 9 months 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Intentionally no include guards because this file is meant to be included
6 // inside a macro to generate enum values.
7
8 // This file consolidates all the return codes for the browser and renderer
9 // process. The return code is the value that:
10 // a) is returned by main() or winmain(), or
11 // b) specified in the call for ExitProcess() or TerminateProcess(), or
12 // c) the exception value that causes a process to terminate.
13 //
14 // It is advisable to not use negative numbers because the Windows API returns
15 // it as an unsigned long and the exception values have high numbers. For
16 // example EXCEPTION_ACCESS_VIOLATION value is 0xC0000005.
17
18 // Process terminated normally.
19 RESULT_CODE(NORMAL_EXIT, 0)
20
21 // Process was killed by user or system.
22 RESULT_CODE(KILLED, 1)
23
24 // Process hung.
25 RESULT_CODE(HUNG, 2)
26
27 // A bad message caused the process termination.
28 RESULT_CODE(KILLED_BAD_MESSAGE, 3)
29
30 // 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:
31 RESULT_CODE(FAILED_TO_REGISTER_JNI, 4)
32
33 // Failed to find and load the native library. (Android)
34 RESULT_CODE(NATIVE_LIBRARY_LOAD_FAILED, 5)
35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698