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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // family from base/mac/mac_util.h, or base::win::GetVersion from | 46 // family from base/mac/mac_util.h, or base::win::GetVersion from |
47 // base/win/windows_version.h. | 47 // base/win/windows_version.h. |
48 static void OperatingSystemVersionNumbers(int32* major_version, | 48 static void OperatingSystemVersionNumbers(int32* major_version, |
49 int32* minor_version, | 49 int32* minor_version, |
50 int32* bugfix_version); | 50 int32* bugfix_version); |
51 | 51 |
52 // Returns the architecture of the running operating system. | 52 // Returns the architecture of the running operating system. |
53 // Exact return value may differ across platforms. | 53 // Exact return value may differ across platforms. |
54 // e.g. a 32-bit x86 kernel on a 64-bit capable CPU will return "x86", | 54 // e.g. a 32-bit x86 kernel on a 64-bit capable CPU will return "x86", |
55 // whereas a x86-64 kernel on the same CPU will return "x86_64" | 55 // whereas a x86-64 kernel on the same CPU will return "x86_64" |
56 // TODO(thestig) Rename this to OperatingSystemArchitecture(). | 56 static std::string OperatingSystemArchitecture(); |
57 static std::string CPUArchitecture(); | |
58 | 57 |
59 // Avoid using this. Use base/cpu.h to get information about the CPU instead. | 58 // Avoid using this. Use base/cpu.h to get information about the CPU instead. |
60 // http://crbug.com/148884 | 59 // http://crbug.com/148884 |
61 // Returns the CPU model name of the system. If it can not be figured out, | 60 // Returns the CPU model name of the system. If it can not be figured out, |
62 // an empty string is returned. | 61 // an empty string is returned. |
63 static std::string CPUModelName(); | 62 static std::string CPUModelName(); |
64 | 63 |
65 // Return the smallest amount of memory (in bytes) which the VM system will | 64 // Return the smallest amount of memory (in bytes) which the VM system will |
66 // allocate. | 65 // allocate. |
67 static size_t VMAllocationGranularity(); | 66 static size_t VMAllocationGranularity(); |
(...skipping 29 matching lines...) Expand all Loading... |
97 // Returns the device's name. | 96 // Returns the device's name. |
98 static std::string GetDeviceName(); | 97 static std::string GetDeviceName(); |
99 | 98 |
100 static int DalvikHeapSizeMB(); | 99 static int DalvikHeapSizeMB(); |
101 #endif // defined(OS_ANDROID) | 100 #endif // defined(OS_ANDROID) |
102 }; | 101 }; |
103 | 102 |
104 } // namespace base | 103 } // namespace base |
105 | 104 |
106 #endif // BASE_SYS_INFO_H_ | 105 #endif // BASE_SYS_INFO_H_ |
OLD | NEW |