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

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

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/public/common/resource_response.h ('k') | content/public/common/sandbox_init.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once
8 7
9 // 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
10 // process. The return code is the value that: 9 // process. The return code is the value that:
11 // a) is returned by main() or winmain(), or 10 // a) is returned by main() or winmain(), or
12 // b) specified in the call for ExitProcess() or TerminateProcess(), or 11 // b) specified in the call for ExitProcess() or TerminateProcess(), or
13 // c) the exception value that causes a process to terminate. 12 // c) the exception value that causes a process to terminate.
14 // 13 //
15 // It is advisable to not use negative numbers because the Windows API returns 14 // It is advisable to not use negative numbers because the Windows API returns
16 // it as an unsigned long and the exception values have high numbers. For 15 // it as an unsigned long and the exception values have high numbers. For
17 // example EXCEPTION_ACCESS_VIOLATION value is 0xC0000005. 16 // example EXCEPTION_ACCESS_VIOLATION value is 0xC0000005.
(...skipping 13 matching lines...) Expand all
31 // A bad message caused the process termination. 30 // A bad message caused the process termination.
32 RESULT_CODE_KILLED_BAD_MESSAGE, 31 RESULT_CODE_KILLED_BAD_MESSAGE,
33 32
34 // Last return code (keep this last). 33 // Last return code (keep this last).
35 RESULT_CODE_LAST_CODE 34 RESULT_CODE_LAST_CODE
36 }; 35 };
37 36
38 } // namespace content 37 } // namespace content
39 38
40 #endif // CONTENT_PUBLIC_COMMON_RESULT_CODES_H_ 39 #endif // CONTENT_PUBLIC_COMMON_RESULT_CODES_H_
OLDNEW
« no previous file with comments | « content/public/common/resource_response.h ('k') | content/public/common/sandbox_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698