| 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 #ifndef BASE_PROCESS_PROCESS_INFO_H_ | 5 #ifndef BASE_PROCESS_PROCESS_INFO_H_ | 
| 6 #define BASE_PROCESS_PROCESS_INFO_H_ | 6 #define BASE_PROCESS_PROCESS_INFO_H_ | 
| 7 | 7 | 
| 8 #include "base/base_export.h" | 8 #include "base/base_export.h" | 
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" | 
| 10 | 10 | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 24 enum IntegrityLevel { | 24 enum IntegrityLevel { | 
| 25   INTEGRITY_UNKNOWN, | 25   INTEGRITY_UNKNOWN, | 
| 26   LOW_INTEGRITY, | 26   LOW_INTEGRITY, | 
| 27   MEDIUM_INTEGRITY, | 27   MEDIUM_INTEGRITY, | 
| 28   HIGH_INTEGRITY, | 28   HIGH_INTEGRITY, | 
| 29 }; | 29 }; | 
| 30 | 30 | 
| 31 // Returns the integrity level of the process. Returns INTEGRITY_UNKNOWN in the | 31 // Returns the integrity level of the process. Returns INTEGRITY_UNKNOWN in the | 
| 32 // case of an underlying system failure. | 32 // case of an underlying system failure. | 
| 33 BASE_EXPORT IntegrityLevel GetCurrentProcessIntegrityLevel(); | 33 BASE_EXPORT IntegrityLevel GetCurrentProcessIntegrityLevel(); | 
|  | 34 | 
|  | 35 // Determines whether the current process is elevated. | 
|  | 36 BASE_EXPORT bool IsCurrentProcessElevated(); | 
|  | 37 | 
| 34 #endif  // defined(OS_WIN) | 38 #endif  // defined(OS_WIN) | 
| 35 | 39 | 
| 36 }  // namespace base | 40 }  // namespace base | 
| 37 | 41 | 
| 38 #endif  // BASE_PROCESS_PROCESS_INFO_H_ | 42 #endif  // BASE_PROCESS_PROCESS_INFO_H_ | 
| OLD | NEW | 
|---|