Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / base / process / process_info.h
blob85f204d04cff02ec0d0ad354d4952e94a88dc8c0
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
3 // found in the LICENSE file.
5 #ifndef BASE_PROCESS_PROCESS_INFO_H_
6 #define BASE_PROCESS_PROCESS_INFO_H_
8 #include "base/base_export.h"
9 #include "base/basictypes.h"
10 #include "build/build_config.h"
12 namespace base {
14 class Time;
16 // Vends information about the current process.
17 class BASE_EXPORT CurrentProcessInfo {
18 public:
19 // Returns the time at which the process was launched. May be empty if an
20 // error occurred retrieving the information.
21 static const Time CreationTime();
24 #if defined(OS_WIN)
26 enum IntegrityLevel {
27 INTEGRITY_UNKNOWN,
28 LOW_INTEGRITY,
29 MEDIUM_INTEGRITY,
30 HIGH_INTEGRITY,
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();
38 #endif // defined(OS_WIN)
42 } // namespace base
44 #endif // BASE_PROCESS_PROCESS_INFO_H_