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

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

Issue 10736032: Merge 146054 - Bring back VERSION_SERVER_2003 to distinguish Server 2003 and XP Pro x64 from regula… (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | base/win/windows_version.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_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 #pragma once 7 #pragma once
8 8
9 #include "base/base_export.h" 9 #include "base/base_export.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 typedef void* HANDLE; 12 typedef void* HANDLE;
13 13
14 namespace base { 14 namespace base {
15 namespace win { 15 namespace win {
16 16
17 // The running version of Windows. This is declared outside OSInfo for 17 // The running version of Windows. This is declared outside OSInfo for
18 // syntactic sugar reasons; see the declaration of GetVersion() below. 18 // syntactic sugar reasons; see the declaration of GetVersion() below.
19 // NOTE: Keep these in order so callers can do things like 19 // NOTE: Keep these in order so callers can do things like
20 // "if (base::win::GetVersion() >= base::win::VERSION_VISTA) ...". 20 // "if (base::win::GetVersion() >= base::win::VERSION_VISTA) ...".
21 enum Version { 21 enum Version {
22 VERSION_PRE_XP = 0, // Not supported. 22 VERSION_PRE_XP = 0, // Not supported.
23 VERSION_XP, // Also includes XP Pro x64, Server 2003, and S2003 R2. 23 VERSION_XP,
24 VERSION_SERVER_2003, // Also includes XP Pro x64 and Server 2003 R2.
24 VERSION_VISTA, // Also includes Windows Server 2008. 25 VERSION_VISTA, // Also includes Windows Server 2008.
25 VERSION_WIN7, // Also includes Windows Server 2008 R2. 26 VERSION_WIN7, // Also includes Windows Server 2008 R2.
26 VERSION_WIN8, // Also includes Windows Server 2012. 27 VERSION_WIN8, // Also includes Windows Server 2012.
27 VERSION_WIN_LAST, // Indicates error condition. 28 VERSION_WIN_LAST, // Indicates error condition.
28 }; 29 };
29 30
30 // A singleton that can be used to query various pieces of information about the 31 // A singleton that can be used to query various pieces of information about the
31 // OS and process state. Note that this doesn't use the base Singleton class, so 32 // OS and process state. Note that this doesn't use the base Singleton class, so
32 // it can be used without an AtExitManager. 33 // it can be used without an AtExitManager.
33 class BASE_EXPORT OSInfo { 34 class BASE_EXPORT OSInfo {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 }; 98 };
98 99
99 // Because this is by far the most commonly-requested value from the above 100 // Because this is by far the most commonly-requested value from the above
100 // singleton, we add a global-scope accessor here as syntactic sugar. 101 // singleton, we add a global-scope accessor here as syntactic sugar.
101 BASE_EXPORT Version GetVersion(); 102 BASE_EXPORT Version GetVersion();
102 103
103 } // namespace win 104 } // namespace win
104 } // namespace base 105 } // namespace base
105 106
106 #endif // BASE_WIN_WINDOWS_VERSION_H_ 107 #endif // BASE_WIN_WINDOWS_VERSION_H_
OLDNEW
« no previous file with comments | « no previous file | base/win/windows_version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698