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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « base/process/process_handle_win.cc ('k') | base/process/process_info_win.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) 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_PROCESS_INFO_H_ 5 #ifndef BASE_PROCESS_PROCESS_INFO_H_
6 #define BASE_PROCESS_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 "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "build/build_config.h"
10 11
11 namespace base { 12 namespace base {
12 13
13 class Time; 14 class Time;
14 15
15 // Vends information about the current process. 16 // Vends information about the current process.
16 class BASE_EXPORT CurrentProcessInfo { 17 class BASE_EXPORT CurrentProcessInfo {
17 public: 18 public:
18 // Returns the time at which the process was launched. May be empty if an 19 // Returns the time at which the process was launched. May be empty if an
19 // error occurred retrieving the information. 20 // error occurred retrieving the information.
20 static const Time CreationTime(); 21 static const Time CreationTime();
21 }; 22 };
22 23
24 #if defined(OS_WIN)
25
26 enum IntegrityLevel {
27 INTEGRITY_UNKNOWN,
28 LOW_INTEGRITY,
29 MEDIUM_INTEGRITY,
30 HIGH_INTEGRITY,
31 };
32
33 // Returns the integrity level of the process. Returns INTEGRITY_UNKNOWN if the
34 // system does not support integrity levels (pre-Vista) or in the case of an
35 // underlying system failure.
36 BASE_EXPORT IntegrityLevel GetCurrentProcessIntegrityLevel();
37
38 #endif // defined(OS_WIN)
39
40
41
23 } // namespace base 42 } // namespace base
24 43
25 #endif // BASE_PROCESS_PROCESS_PROCESS_INFO_H_ 44 #endif // BASE_PROCESS_PROCESS_INFO_H_
OLDNEW
« no previous file with comments | « base/process/process_handle_win.cc ('k') | base/process/process_info_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698