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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 153 |
154 // Returns true if this is a low-end device. | 154 // Returns true if this is a low-end device. |
155 // Low-end device refers to devices having less than 512M memory in the | 155 // Low-end device refers to devices having less than 512M memory in the |
156 // current implementation. | 156 // current implementation. |
157 static bool IsLowEndDevice(); | 157 static bool IsLowEndDevice(); |
158 | 158 |
159 private: | 159 private: |
160 FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory); | 160 FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory); |
161 FRIEND_TEST_ALL_PREFIXES(debug::SystemMetricsTest, ParseMeminfo); | 161 FRIEND_TEST_ALL_PREFIXES(debug::SystemMetricsTest, ParseMeminfo); |
162 | 162 |
163 #if defined(OS_LINUX) || defined(OS_ANDROID) | 163 #if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_AIX) |
164 static int64_t AmountOfAvailablePhysicalMemory( | 164 static int64_t AmountOfAvailablePhysicalMemory( |
165 const SystemMemoryInfoKB& meminfo); | 165 const SystemMemoryInfoKB& meminfo); |
166 #endif | 166 #endif |
167 }; | 167 }; |
168 | 168 |
169 } // namespace base | 169 } // namespace base |
170 | 170 |
171 #endif // BASE_SYS_INFO_H_ | 171 #endif // BASE_SYS_INFO_H_ |
OLD | NEW |