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

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

Issue 10408084: Lump client and server versions of Windows together. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Also do away with Server 2003 Created 8 years, 6 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 | « base/win/pe_image_unittest.cc ('k') | 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) 2011 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, 23 VERSION_XP, // Also includes XP Pro x64, Server 2003, and S2003 R2.
24 VERSION_SERVER_2003, // Also includes Windows XP Professional x64. 24 VERSION_VISTA, // Also includes Windows Server 2008.
25 VERSION_VISTA, 25 VERSION_WIN7, // Also includes Windows Server 2008 R2.
26 VERSION_SERVER_2008, 26 VERSION_WIN8, // Also includes Windows Server 2012.
27 VERSION_WIN7, 27 VERSION_WIN_LAST, // Indicates error condition.
28 VERSION_WIN8,
29 VERSION_WIN_LAST, // Indicates error condition.
30 }; 28 };
31 29
32 // A singleton that can be used to query various pieces of information about the 30 // A singleton that can be used to query various pieces of information about the
33 // OS and process state. Note that this doesn't use the base Singleton class, so 31 // OS and process state. Note that this doesn't use the base Singleton class, so
34 // it can be used without an AtExitManager. 32 // it can be used without an AtExitManager.
35 class BASE_EXPORT OSInfo { 33 class BASE_EXPORT OSInfo {
36 public: 34 public:
37 struct VersionNumber { 35 struct VersionNumber {
38 int major; 36 int major;
39 int minor; 37 int minor;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 }; 97 };
100 98
101 // Because this is by far the most commonly-requested value from the above 99 // Because this is by far the most commonly-requested value from the above
102 // singleton, we add a global-scope accessor here as syntactic sugar. 100 // singleton, we add a global-scope accessor here as syntactic sugar.
103 BASE_EXPORT Version GetVersion(); 101 BASE_EXPORT Version GetVersion();
104 102
105 } // namespace win 103 } // namespace win
106 } // namespace base 104 } // namespace base
107 105
108 #endif // BASE_WIN_WINDOWS_VERSION_H_ 106 #endif // BASE_WIN_WINDOWS_VERSION_H_
OLDNEW
« no previous file with comments | « base/win/pe_image_unittest.cc ('k') | base/win/windows_version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698