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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
122 | 122 |
123 // Returns the Android build ID. | 123 // Returns the Android build ID. |
124 static std::string GetAndroidBuildID(); | 124 static std::string GetAndroidBuildID(); |
125 | 125 |
126 // Returns the device's name. | 126 // Returns the device's name. |
127 static std::string GetDeviceName(); | 127 static std::string GetDeviceName(); |
128 | 128 |
129 static int DalvikHeapSizeMB(); | 129 static int DalvikHeapSizeMB(); |
130 static int DalvikHeapGrowthLimitMB(); | 130 static int DalvikHeapGrowthLimitMB(); |
131 #endif // defined(OS_ANDROID) | 131 #endif // defined(OS_ANDROID) |
132 | |
133 // Returns true iff this is a low-end device. | |
brettw
2014/06/18 19:37:29
iff -> if. Easier to read and no less precise in t
| |
134 static bool IsLowEndDevice(); | |
132 }; | 135 }; |
133 | 136 |
134 } // namespace base | 137 } // namespace base |
135 | 138 |
136 #endif // BASE_SYS_INFO_H_ | 139 #endif // BASE_SYS_INFO_H_ |
OLD | NEW |