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

Side by Side Diff: base/process/process_handle.h

Issue 218883008: Use process_singleton_linux on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and rebase Created 6 years, 7 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 | base/process/process_handle_mac.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) 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
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_
OLDNEW
« no previous file with comments | « no previous file | base/process/process_handle_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698