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

Side by Side Diff: base/process_util.h

Issue 6791017: GPU.GPUProcessLifetimeEvents Crash probes added (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: base:: needed Created 9 years, 8 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 | « no previous file | content/browser/gpu_process_host.cc » ('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 // This file/namespace contains utility functions for enumerating, ending and 5 // This file/namespace contains utility functions for enumerating, ending and
6 // computing statistics of processes. 6 // computing statistics of processes.
7 7
8 #ifndef BASE_PROCESS_UTIL_H_ 8 #ifndef BASE_PROCESS_UTIL_H_
9 #define BASE_PROCESS_UTIL_H_ 9 #define BASE_PROCESS_UTIL_H_
10 #pragma once 10 #pragma once
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 #endif // defined(OS_POSIX) 120 #endif // defined(OS_POSIX)
121 121
122 // Return status values from GetTerminationStatus. Don't use these as 122 // Return status values from GetTerminationStatus. Don't use these as
123 // exit code arguments to KillProcess*(), use platform/application 123 // exit code arguments to KillProcess*(), use platform/application
124 // specific values instead. 124 // specific values instead.
125 enum TerminationStatus { 125 enum TerminationStatus {
126 TERMINATION_STATUS_NORMAL_TERMINATION, // zero exit status 126 TERMINATION_STATUS_NORMAL_TERMINATION, // zero exit status
127 TERMINATION_STATUS_ABNORMAL_TERMINATION, // non-zero exit status 127 TERMINATION_STATUS_ABNORMAL_TERMINATION, // non-zero exit status
128 TERMINATION_STATUS_PROCESS_WAS_KILLED, // e.g. SIGKILL or task manager kill 128 TERMINATION_STATUS_PROCESS_WAS_KILLED, // e.g. SIGKILL or task manager kill
129 TERMINATION_STATUS_PROCESS_CRASHED, // e.g. Segmentation fault 129 TERMINATION_STATUS_PROCESS_CRASHED, // e.g. Segmentation fault
130 TERMINATION_STATUS_STILL_RUNNING // child hasn't exited yet 130 TERMINATION_STATUS_STILL_RUNNING, // child hasn't exited yet
131 TERMINATION_STATUS_MAX_ENUM
131 }; 132 };
132 133
133 // Returns the id of the current process. 134 // Returns the id of the current process.
134 BASE_API ProcessId GetCurrentProcId(); 135 BASE_API ProcessId GetCurrentProcId();
135 136
136 // Returns the ProcessHandle of the current process. 137 // Returns the ProcessHandle of the current process.
137 BASE_API ProcessHandle GetCurrentProcessHandle(); 138 BASE_API ProcessHandle GetCurrentProcessHandle();
138 139
139 // Converts a PID to a process handle. This handle must be closed by 140 // Converts a PID to a process handle. This handle must be closed by
140 // CloseProcessHandle when you are done with it. Returns true on success. 141 // CloseProcessHandle when you are done with it. Returns true on success.
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 // instance running inside the parent. The parent's Breakpad instance should 676 // instance running inside the parent. The parent's Breakpad instance should
676 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler 677 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler
677 // in the child after forking will restore the standard exception handler. 678 // in the child after forking will restore the standard exception handler.
678 // See http://crbug.com/20371/ for more details. 679 // See http://crbug.com/20371/ for more details.
679 void RestoreDefaultExceptionHandler(); 680 void RestoreDefaultExceptionHandler();
680 #endif // defined(OS_MACOSX) 681 #endif // defined(OS_MACOSX)
681 682
682 } // namespace base 683 } // namespace base
683 684
684 #endif // BASE_PROCESS_UTIL_H_ 685 #endif // BASE_PROCESS_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698