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

Unified Diff: base/sys_info.h

Issue 2052663003: Move implementation of QuotaManager.getVolumeInfo to base::SysInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/sys_info_posix.cc » ('j') | base/sys_info_posix.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info.h
diff --git a/base/sys_info.h b/base/sys_info.h
index 5686dcbb49d22f8dc32cc73301932cb9eb3712ea..caef701e4714ec9ace4f2355f7887f182475f8e3 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -50,6 +50,12 @@ class BASE_EXPORT SysInfo {
// or -1 on failure.
static int64_t AmountOfFreeDiskSpace(const FilePath& path);
+ // Gets the total disk space and available disk space in bytes on the volume
+ // containing |path|, and returns true on success.
+ static bool GetDiskSpaceInfo(const FilePath& path,
+ int64_t* available_bytes,
+ int64_t* total_bytes);
+
// Returns system uptime.
static TimeDelta Uptime();
« no previous file with comments | « no previous file | base/sys_info_posix.cc » ('j') | base/sys_info_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698