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

Side by Side Diff: rlz/win/lib/process_info.h

Issue 405123002: clang/win: Fix a Wenum-compare warning and a few Wwritable-strings warnings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 | Annotate | Revision Log
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 // Information about the current process. 5 // Information about the current process.
6 6
7 #ifndef RLZ_WIN_LIB_PROCESS_INFO_H_ 7 #ifndef RLZ_WIN_LIB_PROCESS_INFO_H_
8 #define RLZ_WIN_LIB_PROCESS_INFO_H_ 8 #define RLZ_WIN_LIB_PROCESS_INFO_H_
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 namespace rlz_lib { 12 namespace rlz_lib {
13 13
14 class ProcessInfo { 14 class ProcessInfo {
15 public: 15 public:
16 enum IntegrityLevel {
17 INTEGRITY_UNKNOWN,
18 LOW_INTEGRITY,
19 MEDIUM_INTEGRITY,
20 HIGH_INTEGRITY,
21 };
22
23 // All these functions cache the result after first run. 16 // All these functions cache the result after first run.
24 static bool IsRunningAsSystem(); 17 static bool IsRunningAsSystem();
25 static bool HasAdminRights(); // System / Admin / High Elevation on Vista 18 static bool HasAdminRights(); // System / Admin / High Elevation on Vista
26 19
27 private: 20 private:
28 DISALLOW_COPY_AND_ASSIGN(ProcessInfo); 21 DISALLOW_COPY_AND_ASSIGN(ProcessInfo);
29 }; // class 22 }; // class
30 }; // namespace 23 }; // namespace
31 24
32 #endif // RLZ_WIN_LIB_PROCESS_INFO_H_ 25 #endif // RLZ_WIN_LIB_PROCESS_INFO_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_web_contents_view_delegate_win.cc ('k') | rlz/win/lib/process_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698