Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: base/sys_info.h

Issue 2807463004: GN: aix port along with linux_s390x, linux_ppc64 and linux_ppc64le support. (Closed)
Patch Set: removed the changes from //base/BUILD.gn Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/strings/string16.cc ('k') | base/sys_info_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « base/strings/string16.cc ('k') | base/sys_info_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698