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

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

Powered by Google App Engine
This is Rietveld 408576698