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

Unified 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: rebase gypi 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/common/result_codes.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9f6453b1c0e4e0c2ff9857a6ac4f82d9046a45e9
--- /dev/null
+++ b/content/public/common/result_codes_list.h
@@ -0,0 +1,38 @@
+// 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.
+
+#include "build/build_config.h"
+
+// 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)
+
+// Failed to find and load the native library.
+RESULT_CODE(NATIVE_LIBRARY_LOAD_FAILED, 5)
+#endif
« no previous file with comments | « content/public/common/result_codes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698