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

Unified Diff: content/common/result_codes.h

Issue 8382021: Move resource_codes to content/public/common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « content/common/process_watcher_win.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/result_codes.h
===================================================================
--- content/common/result_codes.h (revision 107012)
+++ content/common/result_codes.h (working copy)
@@ -1,42 +0,0 @@
-// Copyright (c) 2011 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.
-
-#ifndef CONTENT_COMMON_RESULT_CODES_H_
-#define CONTENT_COMMON_RESULT_CODES_H_
-#pragma once
-
-#include "base/process_util.h"
-
-// 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.
-
-namespace content {
-
-enum ResultCode {
- // 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,
-
- // Last return code (keep this last).
- RESULT_CODE_LAST_CODE
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_RESULT_CODES_H_
« no previous file with comments | « content/common/process_watcher_win.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698