| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 | |
| 11 | 10 |
| 12 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 13 #include "base/time.h" | 12 #include "base/time.h" |
| 14 | 13 |
| 15 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
| 16 #include <windows.h> | 15 #include <windows.h> |
| 17 #include <tlhelp32.h> | 16 #include <tlhelp32.h> |
| 18 #elif defined(OS_MACOSX) || defined(OS_BSD) | 17 #elif defined(OS_MACOSX) || defined(OS_BSD) |
| 19 // kinfo_proc is defined in <sys/sysctl.h>, but this forward declaration | 18 // kinfo_proc is defined in <sys/sysctl.h>, but this forward declaration |
| 20 // is sufficient for the vector<kinfo_proc> below. | 19 // is sufficient for the vector<kinfo_proc> below. |
| (...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 // instance running inside the parent. The parent's Breakpad instance should | 853 // instance running inside the parent. The parent's Breakpad instance should |
| 855 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler | 854 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler |
| 856 // in the child after forking will restore the standard exception handler. | 855 // in the child after forking will restore the standard exception handler. |
| 857 // See http://crbug.com/20371/ for more details. | 856 // See http://crbug.com/20371/ for more details. |
| 858 void RestoreDefaultExceptionHandler(); | 857 void RestoreDefaultExceptionHandler(); |
| 859 #endif // defined(OS_MACOSX) | 858 #endif // defined(OS_MACOSX) |
| 860 | 859 |
| 861 } // namespace base | 860 } // namespace base |
| 862 | 861 |
| 863 #endif // BASE_PROCESS_UTIL_H_ | 862 #endif // BASE_PROCESS_UTIL_H_ |
| OLD | NEW |