| 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 "base/base_export.h" | 8 #include "base/base_export.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // family from base/mac/mac_util.h, or base::win::GetVersion from | 48 // family from base/mac/mac_util.h, or base::win::GetVersion from |
| 49 // base/win/windows_version.h. | 49 // base/win/windows_version.h. |
| 50 static void OperatingSystemVersionNumbers(int32* major_version, | 50 static void OperatingSystemVersionNumbers(int32* major_version, |
| 51 int32* minor_version, | 51 int32* minor_version, |
| 52 int32* bugfix_version); | 52 int32* bugfix_version); |
| 53 | 53 |
| 54 // Returns the CPU architecture of the system. Exact return value may differ | 54 // Returns the CPU architecture of the system. Exact return value may differ |
| 55 // across platforms. | 55 // across platforms. |
| 56 static std::string CPUArchitecture(); | 56 static std::string CPUArchitecture(); |
| 57 | 57 |
| 58 // Returns the CPU model name of the system. |
| 59 static std::string CPUModelName(); |
| 60 |
| 58 // Return the smallest amount of memory (in bytes) which the VM system will | 61 // Return the smallest amount of memory (in bytes) which the VM system will |
| 59 // allocate. | 62 // allocate. |
| 60 static size_t VMAllocationGranularity(); | 63 static size_t VMAllocationGranularity(); |
| 61 | 64 |
| 62 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 65 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 63 // Returns the maximum SysV shared memory segment size. | 66 // Returns the maximum SysV shared memory segment size. |
| 64 static size_t MaxSharedMemorySize(); | 67 static size_t MaxSharedMemorySize(); |
| 65 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) | 68 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) |
| 66 | 69 |
| 67 #if defined(OS_CHROMEOS) | 70 #if defined(OS_CHROMEOS) |
| (...skipping 22 matching lines...) Expand all Loading... |
| 90 // Returns the device's name. | 93 // Returns the device's name. |
| 91 static std::string GetDeviceName(); | 94 static std::string GetDeviceName(); |
| 92 | 95 |
| 93 static int DalvikHeapSizeMB(); | 96 static int DalvikHeapSizeMB(); |
| 94 #endif // defined(OS_ANDROID) | 97 #endif // defined(OS_ANDROID) |
| 95 }; | 98 }; |
| 96 | 99 |
| 97 } // namespace base | 100 } // namespace base |
| 98 | 101 |
| 99 #endif // BASE_SYS_INFO_H_ | 102 #endif // BASE_SYS_INFO_H_ |
| OLD | NEW |