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

Unified Diff: content/public/common/result_codes.h

Issue 625543002: Revert of Use the new java_cpp_enum rule in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: content/public/common/result_codes.h
diff --git a/content/public/common/result_codes.h b/content/public/common/result_codes.h
index d0963a3b14b8483745f798ca60ad6f7912131fab..1bf625d0157c6a233c214162118567045ec52427 100644
--- a/content/public/common/result_codes.h
+++ b/content/public/common/result_codes.h
@@ -7,30 +7,11 @@
namespace content {
-// 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.
-//
-// A Java counterpart will be generated for this enum.
-// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.content_public.common
enum ResultCode {
- // Process terminated normally.
- RESULT_CODE_NORMAL_EXIT,
- // Process was killed by user or system.
- RESULT_CODE_KILLED,
-
- // Process hung.
- RESULT_CODE_HUNG,
-
- // A bad message caused the process termination.
- RESULT_CODE_KILLED_BAD_MESSAGE,
+#define RESULT_CODE(label, value) RESULT_CODE_ ## label = value,
+#include "content/public/common/result_codes_list.h"
+#undef RESULT_CODE
// Last return code (keep this last).
RESULT_CODE_LAST_CODE

Powered by Google App Engine
This is Rietveld 408576698