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

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

Issue 59533009: Check library version and handle library load errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix BrowserStartupControllerTest Created 7 years 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
OLDNEW
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 17 matching lines...) Expand all
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 31
32 #if defined(OS_ANDROID) 32 #if defined(OS_ANDROID)
33 // Failed to register JNI methods. 33 // Failed to register JNI methods.
34 RESULT_CODE(FAILED_TO_REGISTER_JNI, 4) 34 RESULT_CODE(FAILED_TO_REGISTER_JNI, 4)
35 35
36 // Failed to find and load the native library. 36 // Failed to find and load the native library.
37 RESULT_CODE(NATIVE_LIBRARY_LOAD_FAILED, 5) 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)
38 #endif 44 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698