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

Side by Side Diff: base/sys_info.h

Issue 6713107: Make the windows_version.h functions threadsafe by using a singleton. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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/sys_info_win.cc » ('j') | base/sys_info_win.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_SYS_INFO_H_ 5 #ifndef BASE_SYS_INFO_H_
6 #define BASE_SYS_INFO_H_ 6 #define BASE_SYS_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 // Returns the name of the host operating system. 34 // Returns the name of the host operating system.
35 static std::string OperatingSystemName(); 35 static std::string OperatingSystemName();
36 36
37 // Returns the version of the host operating system. 37 // Returns the version of the host operating system.
38 static std::string OperatingSystemVersion(); 38 static std::string OperatingSystemVersion();
39 39
40 // Retrieves detailed numeric values for the OS version. 40 // Retrieves detailed numeric values for the OS version.
41 // TODO(port): Implement a Linux version of this method and enable the 41 // TODO(port): Implement a Linux version of this method and enable the
42 // corresponding unit test. 42 // corresponding unit test.
43 static void OperatingSystemVersionNumbers(int32 *major_version, 43 static void OperatingSystemVersionNumbers(int32* major_version,
44 int32 *minor_version, 44 int32* minor_version,
45 int32 *bugfix_version); 45 int32* bugfix_version);
46 46
47 // Returns the CPU architecture of the system. Exact return value may differ 47 // Returns the CPU architecture of the system. Exact return value may differ
48 // across platforms. 48 // across platforms.
49 static std::string CPUArchitecture(); 49 static std::string CPUArchitecture();
50 50
51 // Returns the pixel dimensions of the primary display via the 51 // Returns the pixel dimensions of the primary display via the
52 // width and height parameters. 52 // width and height parameters.
53 static void GetPrimaryDisplayDimensions(int* width, int* height); 53 static void GetPrimaryDisplayDimensions(int* width, int* height);
54 54
55 // Return the number of displays. 55 // Return the number of displays.
(...skipping 18 matching lines...) Expand all
74 static void ParseLsbRelease(const std::string& lsb_release, 74 static void ParseLsbRelease(const std::string& lsb_release,
75 int32 *major_version, 75 int32 *major_version,
76 int32 *minor_version, 76 int32 *minor_version,
77 int32 *bugfix_version); 77 int32 *bugfix_version);
78 #endif 78 #endif
79 }; 79 };
80 80
81 } // namespace base 81 } // namespace base
82 82
83 #endif // BASE_SYS_INFO_H_ 83 #endif // BASE_SYS_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | base/sys_info_win.cc » ('j') | base/sys_info_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698