| OLD | NEW |
| 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_SYS_INFO_H_ | 5 #ifndef BASE_SYS_INFO_H_ |
| 6 #define BASE_SYS_INFO_H_ | 6 #define BASE_SYS_INFO_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // Android, and Chrome OS. This returns an empty string on other platforms. | 73 // Android, and Chrome OS. This returns an empty string on other platforms. |
| 74 static std::string HardwareModelName(); | 74 static std::string HardwareModelName(); |
| 75 | 75 |
| 76 // Returns the name of the host operating system. | 76 // Returns the name of the host operating system. |
| 77 static std::string OperatingSystemName(); | 77 static std::string OperatingSystemName(); |
| 78 | 78 |
| 79 // Returns the version of the host operating system. | 79 // Returns the version of the host operating system. |
| 80 static std::string OperatingSystemVersion(); | 80 static std::string OperatingSystemVersion(); |
| 81 | 81 |
| 82 // Retrieves detailed numeric values for the OS version. | 82 // Retrieves detailed numeric values for the OS version. |
| 83 // TODO(port): Implement a Linux version of this method and enable the | |
| 84 // corresponding unit test. | |
| 85 // DON'T USE THIS ON THE MAC OR WINDOWS to determine the current OS release | 83 // DON'T USE THIS ON THE MAC OR WINDOWS to determine the current OS release |
| 86 // for OS version-specific feature checks and workarounds. If you must use | 84 // for OS version-specific feature checks and workarounds. If you must use |
| 87 // an OS version check instead of a feature check, use the base::mac::IsOS* | 85 // an OS version check instead of a feature check, use the base::mac::IsOS* |
| 88 // family from base/mac/mac_util.h, or base::win::GetVersion from | 86 // family from base/mac/mac_util.h, or base::win::GetVersion from |
| 89 // base/win/windows_version.h. | 87 // base/win/windows_version.h. |
| 90 static void OperatingSystemVersionNumbers(int32_t* major_version, | 88 static void OperatingSystemVersionNumbers(int32_t* major_version, |
| 91 int32_t* minor_version, | 89 int32_t* minor_version, |
| 92 int32_t* bugfix_version); | 90 int32_t* bugfix_version); |
| 93 | 91 |
| 94 // Returns the architecture of the running operating system. | 92 // Returns the architecture of the running operating system. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 162 |
| 165 #if defined(OS_LINUX) || defined(OS_ANDROID) | 163 #if defined(OS_LINUX) || defined(OS_ANDROID) |
| 166 static int64_t AmountOfAvailablePhysicalMemory( | 164 static int64_t AmountOfAvailablePhysicalMemory( |
| 167 const SystemMemoryInfoKB& meminfo); | 165 const SystemMemoryInfoKB& meminfo); |
| 168 #endif | 166 #endif |
| 169 }; | 167 }; |
| 170 | 168 |
| 171 } // namespace base | 169 } // namespace base |
| 172 | 170 |
| 173 #endif // BASE_SYS_INFO_H_ | 171 #endif // BASE_SYS_INFO_H_ |
| OLD | NEW |