| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "base/command_line.h" | 30 #include "base/command_line.h" |
| 31 #include "base/file_path.h" | 31 #include "base/file_path.h" |
| 32 #include "base/process.h" | 32 #include "base/process.h" |
| 33 | 33 |
| 34 #if defined(OS_WIN) | 34 #if defined(OS_WIN) |
| 35 typedef PROCESSENTRY32 ProcessEntry; | 35 typedef PROCESSENTRY32 ProcessEntry; |
| 36 typedef IO_COUNTERS IoCounters; | 36 typedef IO_COUNTERS IoCounters; |
| 37 #elif defined(OS_POSIX) | 37 #elif defined(OS_POSIX) |
| 38 // TODO(port): we should not rely on a Win32 structure. | 38 // TODO(port): we should not rely on a Win32 structure. |
| 39 struct ProcessEntry { | 39 struct ProcessEntry { |
| 40 int pid; | 40 base::ProcessId pid; |
| 41 int ppid; | 41 base::ProcessId ppid; |
| 42 char szExeFile[NAME_MAX + 1]; | 42 char szExeFile[NAME_MAX + 1]; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 struct IoCounters { | 45 struct IoCounters { |
| 46 unsigned long long ReadOperationCount; | 46 unsigned long long ReadOperationCount; |
| 47 unsigned long long WriteOperationCount; | 47 unsigned long long WriteOperationCount; |
| 48 unsigned long long OtherOperationCount; | 48 unsigned long long OtherOperationCount; |
| 49 unsigned long long ReadTransferCount; | 49 unsigned long long ReadTransferCount; |
| 50 unsigned long long WriteTransferCount; | 50 unsigned long long WriteTransferCount; |
| 51 unsigned long long OtherTransferCount; | 51 unsigned long long OtherTransferCount; |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 // instance running inside the parent. The parent's Breakpad instance should | 435 // instance running inside the parent. The parent's Breakpad instance should |
| 436 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler | 436 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler |
| 437 // in the child after forking will restore the standard exception handler. | 437 // in the child after forking will restore the standard exception handler. |
| 438 // See http://crbug.com/20371/ for more details. | 438 // See http://crbug.com/20371/ for more details. |
| 439 void RestoreDefaultExceptionHandler(); | 439 void RestoreDefaultExceptionHandler(); |
| 440 #endif | 440 #endif |
| 441 | 441 |
| 442 } // namespace base | 442 } // namespace base |
| 443 | 443 |
| 444 #endif // BASE_PROCESS_UTIL_H_ | 444 #endif // BASE_PROCESS_UTIL_H_ |
| OLD | NEW |