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

Side by Side Diff: base/sys_info.h

Issue 258663002: Expose a low-end device mode override flags for non-android OSs as well (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments. Created 6 years, 6 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/memory/discardable_memory_android.cc ('k') | base/sys_info.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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 if this is a low-end device.
134 // Low-end device refers to devices having less than 512M memory in the
135 // current implementation.
136 static bool IsLowEndDevice();
132 }; 137 };
133 138
134 } // namespace base 139 } // namespace base
135 140
136 #endif // BASE_SYS_INFO_H_ 141 #endif // BASE_SYS_INFO_H_
OLDNEW
« no previous file with comments | « base/memory/discardable_memory_android.cc ('k') | base/sys_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698