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

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

Issue 617103007: Revert of 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_COMMON_RESULT_CODES_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_RESULT_CODES_H_
6 #define CONTENT_PUBLIC_COMMON_RESULT_CODES_H_ 6 #define CONTENT_PUBLIC_COMMON_RESULT_CODES_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 // This file consolidates all the return codes for the browser and renderer
11 // process. The return code is the value that:
12 // a) is returned by main() or winmain(), or
13 // b) specified in the call for ExitProcess() or TerminateProcess(), or
14 // c) the exception value that causes a process to terminate.
15 //
16 // It is advisable to not use negative numbers because the Windows API returns
17 // it as an unsigned long and the exception values have high numbers. For
18 // example EXCEPTION_ACCESS_VIOLATION value is 0xC0000005.
19 //
20 // A Java counterpart will be generated for this enum.
21 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.content_public.common
10 enum ResultCode { 22 enum ResultCode {
23 // Process terminated normally.
24 RESULT_CODE_NORMAL_EXIT,
11 25
12 #define RESULT_CODE(label, value) RESULT_CODE_ ## label = value, 26 // Process was killed by user or system.
13 #include "content/public/common/result_codes_list.h" 27 RESULT_CODE_KILLED,
14 #undef RESULT_CODE 28
29 // Process hung.
30 RESULT_CODE_HUNG,
31
32 // A bad message caused the process termination.
33 RESULT_CODE_KILLED_BAD_MESSAGE,
15 34
16 // Last return code (keep this last). 35 // Last return code (keep this last).
17 RESULT_CODE_LAST_CODE 36 RESULT_CODE_LAST_CODE
18 }; 37 };
19 38
20 } // namespace content 39 } // namespace content
21 40
22 #endif // CONTENT_PUBLIC_COMMON_RESULT_CODES_H_ 41 #endif // CONTENT_PUBLIC_COMMON_RESULT_CODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698