Loosen up heuristics for detecting account creation forms.
[chromium-blink-merge.git] / content / public / common / result_codes.h
blob20cfbb87e02d9402ae03e367e79eaecfd0ba9b64
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_COMMON_RESULT_CODES_H_
6 #define CONTENT_PUBLIC_COMMON_RESULT_CODES_H_
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.
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.
18 namespace content {
20 enum ResultCode {
21 // Process terminated normally.
22 RESULT_CODE_NORMAL_EXIT = 0,
24 // Process was killed by user or system.
25 RESULT_CODE_KILLED = 1,
27 // Process hung.
28 RESULT_CODE_HUNG = 2,
30 // A bad message caused the process termination.
31 RESULT_CODE_KILLED_BAD_MESSAGE,
33 // Last return code (keep this last).
34 RESULT_CODE_LAST_CODE
37 } // namespace content
39 #endif // CONTENT_PUBLIC_COMMON_RESULT_CODES_H_