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

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

Issue 2961333002: Fix field trials not working in utility processes. (Closed)
Patch Set: review comment Created 3 years, 5 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
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698