summaryrefslogtreecommitdiffstats
path: root/base/sys_info.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-20 01:16:23 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-20 01:16:23 +0000
commit02ee34a9daa91fd125b9f9a48ca56502c8d1d36c (patch)
tree607ac680d8d8d8b39348d8415677e9813d440737 /base/sys_info.h
parentc328da8db8cb5c8d9366874c6e23533e9fa82c7e (diff)
downloadchromium_src-02ee34a9daa91fd125b9f9a48ca56502c8d1d36c.zip
chromium_src-02ee34a9daa91fd125b9f9a48ca56502c8d1d36c.tar.gz
chromium_src-02ee34a9daa91fd125b9f9a48ca56502c8d1d36c.tar.bz2
Fix AmountOfFreeDiskSpace to be able to differentiate an error
from a full disk. Review URL: http://codereview.chromium.org/4003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2431 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info.h')
-rw-r--r--base/sys_info.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/sys_info.h b/base/sys_info.h
index 00436f5..3d6a16a6 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -24,7 +24,8 @@ class SysInfo {
return static_cast<int>(AmountOfPhysicalMemory() / 1024 / 1024);
}
- // Return the available disk space in bytes on the volume containing |path|.
+ // Return the available disk space in bytes on the volume containing |path|,
+ // or -1 on failure.
static int64 AmountOfFreeDiskSpace(const std::wstring& path);
};