OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 BASE_PROCESS_PROCESS_HANDLE_H_ | 5 #ifndef BASE_PROCESS_PROCESS_HANDLE_H_ |
6 #define BASE_PROCESS_PROCESS_HANDLE_H_ | 6 #define BASE_PROCESS_PROCESS_HANDLE_H_ |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 // Returns the ProcessHandle of the current process. | 40 // Returns the ProcessHandle of the current process. |
41 BASE_EXPORT ProcessHandle GetCurrentProcessHandle(); | 41 BASE_EXPORT ProcessHandle GetCurrentProcessHandle(); |
42 | 42 |
43 // Returns the unique ID for the specified process. This is functionally the | 43 // Returns the unique ID for the specified process. This is functionally the |
44 // same as Windows' GetProcessId(), but works on versions of Windows before | 44 // same as Windows' GetProcessId(), but works on versions of Windows before |
45 // Win XP SP1 as well. | 45 // Win XP SP1 as well. |
46 // DEPRECATED. New code should be using Process::Pid() instead. | 46 // DEPRECATED. New code should be using Process::Pid() instead. |
47 BASE_EXPORT ProcessId GetProcId(ProcessHandle process); | 47 BASE_EXPORT ProcessId GetProcId(ProcessHandle process); |
48 | 48 |
49 #if defined(OS_POSIX) | 49 #if defined(OS_POSIX) |
| 50 |
| 51 #if !defined(OS_IOS) |
50 // Returns the path to the executable of the given process. | 52 // Returns the path to the executable of the given process. |
51 BASE_EXPORT FilePath GetProcessExecutablePath(ProcessHandle process); | 53 BASE_EXPORT FilePath GetProcessExecutablePath(ProcessHandle process); |
| 54 #endif |
52 | 55 |
53 // Returns the ID for the parent of the given process. | 56 // Returns the ID for the parent of the given process. |
54 BASE_EXPORT ProcessId GetParentProcessId(ProcessHandle process); | 57 BASE_EXPORT ProcessId GetParentProcessId(ProcessHandle process); |
55 #endif | 58 #endif |
56 | 59 |
57 } // namespace base | 60 } // namespace base |
58 | 61 |
59 #endif // BASE_PROCESS_PROCESS_HANDLE_H_ | 62 #endif // BASE_PROCESS_PROCESS_HANDLE_H_ |
OLD | NEW |