summaryrefslogtreecommitdiffstats
path: root/base/sys_info.h
diff options
context:
space:
mode:
authorhongbo.min@intel.com <hongbo.min@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-27 06:10:37 +0000
committerhongbo.min@intel.com <hongbo.min@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-27 06:10:37 +0000
commit52bdcdad3d131faf6443b7fa558a474c496d974a (patch)
tree8c9503d1e8b602ff7741b470d646ee3f9af7624a /base/sys_info.h
parent7e8f754399801f33da56e4aa062480cf732b105b (diff)
downloadchromium_src-52bdcdad3d131faf6443b7fa558a474c496d974a.zip
chromium_src-52bdcdad3d131faf6443b7fa558a474c496d974a.tar.gz
chromium_src-52bdcdad3d131faf6443b7fa558a474c496d974a.tar.bz2
Add systemInfo.memory API implementation
BUG=136519 TEST=browser_tests --gtest_filter=SystemInfoMemoryApiTest.* Review URL: https://chromiumcodereview.appspot.com/11185049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164518 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info.h')
-rw-r--r--base/sys_info.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/sys_info.h b/base/sys_info.h
index e1122b5..e48c5a3 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -22,6 +22,10 @@ class BASE_EXPORT SysInfo {
// Return the number of bytes of physical memory on the current machine.
static int64 AmountOfPhysicalMemory();
+ // Return the number of bytes of current available physical memory on the
+ // machine.
+ static int64 AmountOfAvailablePhysicalMemory();
+
// Return the number of megabytes of physical memory on the current machine.
static int AmountOfPhysicalMemoryMB() {
return static_cast<int>(AmountOfPhysicalMemory() / 1024 / 1024);