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

Side by Side Diff: base/win/windows_version.h

Issue 1626623003: [Win10 sandbox mitigations] Four new Win10 mitigations added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | base/win/windows_version.cc » ('j') | content/common/sandbox_win.cc » ('J')
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_WIN_WINDOWS_VERSION_H_ 5 #ifndef BASE_WIN_WINDOWS_VERSION_H_
6 #define BASE_WIN_WINDOWS_VERSION_H_ 6 #define BASE_WIN_WINDOWS_VERSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/base_export.h" 12 #include "base/base_export.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 14
15 typedef void* HANDLE; 15 typedef void* HANDLE;
16 16
17 namespace base { 17 namespace base {
18 namespace win { 18 namespace win {
19 19
20 // The running version of Windows. This is declared outside OSInfo for 20 // The running version of Windows. This is declared outside OSInfo for
21 // syntactic sugar reasons; see the declaration of GetVersion() below. 21 // syntactic sugar reasons; see the declaration of GetVersion() below.
22 // NOTE: Keep these in order so callers can do things like 22 // NOTE: Keep these in order so callers can do things like
23 // "if (base::win::GetVersion() >= base::win::VERSION_VISTA) ...". 23 // "if (base::win::GetVersion() >= base::win::VERSION_VISTA) ...".
24 enum Version { 24 enum Version {
25 VERSION_PRE_XP = 0, // Not supported. 25 VERSION_PRE_XP = 0, // Not supported.
26 VERSION_XP, 26 VERSION_XP,
27 VERSION_SERVER_2003, // Also includes XP Pro x64 and Server 2003 R2. 27 VERSION_SERVER_2003, // Also includes XP Pro x64 and Server 2003 R2.
28 VERSION_VISTA, // Also includes Windows Server 2008. 28 VERSION_VISTA, // Also includes Windows Server 2008.
29 VERSION_WIN7, // Also includes Windows Server 2008 R2. 29 VERSION_WIN7, // Also includes Windows Server 2008 R2.
30 VERSION_WIN8, // Also includes Windows Server 2012. 30 VERSION_WIN8, // Also includes Windows Server 2012.
31 VERSION_WIN8_1, // Also includes Windows Server 2012 R2. 31 VERSION_WIN8_1, // Also includes Windows Server 2012 R2.
32 VERSION_WIN10, // Also includes Windows 10 Server. 32 VERSION_WIN10, // Also includes Windows 10 Server.
33 VERSION_WIN_LAST, // Indicates error condition. 33 VERSION_WIN10_10586, // Version 1511, Threshold 2.
jschuh 2016/01/25 23:53:51 This could be nicer. How about: VERSION_WIN10_T
penny 2016/01/26 22:37:09 Done. Sounds fine to me!
34 VERSION_WIN_LAST, // Indicates error condition.
34 }; 35 };
35 36
36 // A rough bucketing of the available types of versions of Windows. This is used 37 // A rough bucketing of the available types of versions of Windows. This is used
37 // to distinguish enterprise enabled versions from home versions and potentially 38 // to distinguish enterprise enabled versions from home versions and potentially
38 // server versions. 39 // server versions.
39 enum VersionType { 40 enum VersionType {
40 SUITE_HOME, 41 SUITE_HOME,
41 SUITE_PROFESSIONAL, 42 SUITE_PROFESSIONAL,
42 SUITE_SERVER, 43 SUITE_SERVER,
43 SUITE_LAST, 44 SUITE_LAST,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 }; 118 };
118 119
119 // Because this is by far the most commonly-requested value from the above 120 // Because this is by far the most commonly-requested value from the above
120 // singleton, we add a global-scope accessor here as syntactic sugar. 121 // singleton, we add a global-scope accessor here as syntactic sugar.
121 BASE_EXPORT Version GetVersion(); 122 BASE_EXPORT Version GetVersion();
122 123
123 } // namespace win 124 } // namespace win
124 } // namespace base 125 } // namespace base
125 126
126 #endif // BASE_WIN_WINDOWS_VERSION_H_ 127 #endif // BASE_WIN_WINDOWS_VERSION_H_
OLDNEW
« no previous file with comments | « no previous file | base/win/windows_version.cc » ('j') | content/common/sandbox_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698