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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 MEDIUM_INTEGRITY, | 74 MEDIUM_INTEGRITY, |
75 HIGH_INTEGRITY, | 75 HIGH_INTEGRITY, |
76 }; | 76 }; |
77 // Determine the integrity level of the specified process. Returns false | 77 // Determine the integrity level of the specified process. Returns false |
78 // if the system does not support integrity levels (pre-Vista) or in the case | 78 // if the system does not support integrity levels (pre-Vista) or in the case |
79 // of an underlying system failure. | 79 // of an underlying system failure. |
80 BASE_EXPORT bool GetProcessIntegrityLevel(ProcessHandle process, | 80 BASE_EXPORT bool GetProcessIntegrityLevel(ProcessHandle process, |
81 IntegrityLevel* level); | 81 IntegrityLevel* level); |
82 #endif | 82 #endif |
83 | 83 |
84 #if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) | 84 #if defined(OS_POSIX) |
85 // Returns the path to the executable of the given process. | 85 // Returns the path to the executable of the given process. |
86 BASE_EXPORT FilePath GetProcessExecutablePath(ProcessHandle process); | 86 BASE_EXPORT FilePath GetProcessExecutablePath(ProcessHandle process); |
87 #endif | |
88 | 87 |
89 #if defined(OS_POSIX) | |
90 // Returns the ID for the parent of the given process. | 88 // Returns the ID for the parent of the given process. |
91 BASE_EXPORT ProcessId GetParentProcessId(ProcessHandle process); | 89 BASE_EXPORT ProcessId GetParentProcessId(ProcessHandle process); |
92 #endif | 90 #endif |
93 | 91 |
94 } // namespace base | 92 } // namespace base |
95 | 93 |
96 #endif // BASE_PROCESS_PROCESS_HANDLE_H_ | 94 #endif // BASE_PROCESS_PROCESS_HANDLE_H_ |
OLD | NEW |