summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/cache_util.h
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-10 19:57:23 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-10 19:57:23 +0000
commit233665dce6fc0061fa821ed8438884a0582348e5 (patch)
treea5ba2935d2f2a5fc50e8e735419e3d76330a8022 /net/disk_cache/cache_util.h
parentbf5e7dbe6389d8e9a2b0d582c4b84b867599f962 (diff)
downloadchromium_src-233665dce6fc0061fa821ed8438884a0582348e5.zip
chromium_src-233665dce6fc0061fa821ed8438884a0582348e5.tar.gz
chromium_src-233665dce6fc0061fa821ed8438884a0582348e5.tar.bz2
Implement GetFreeDiskSpace for POSIX and GetSystemMemory for Linux.
Patch by Paweł Hajdan jr <phajdan.jr@gmail.com> http://codereview.chromium.org/1891 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2007 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/cache_util.h')
-rw-r--r--net/disk_cache/cache_util.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/disk_cache/cache_util.h b/net/disk_cache/cache_util.h
index 8ddb8a7..0977472 100644
--- a/net/disk_cache/cache_util.h
+++ b/net/disk_cache/cache_util.h
@@ -11,11 +11,12 @@
namespace disk_cache {
-// Returns the available disk space on the volume that contains |path|, or -1
-// on failure.
+// Returns the available disk space on the volume that contains |path|
+// (in bytes), or -1 on failure.
int64 GetFreeDiskSpace(const std::wstring& path);
-// Returns the total physical memory on the system, or -1 on failure.
+// Returns the total physical memory on the system (in bytes),
+// or -1 on failure.
int64 GetSystemMemory();
// Moves the cache files from the given path to another location.