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

Unified Diff: platform.h

Issue 6598074: DoAutomaticFreeDiskSpaceControl() introduced (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cryptohome.git@master
Patch Set: Created 9 years, 10 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 | « mount_unittest.cc ('k') | platform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform.h
diff --git a/platform.h b/platform.h
index fc03f9fcc70a3a7abb892c793e041597325c693f..200972c3d7983a6e4846fc962a4ba8beded032e6 100644
--- a/platform.h
+++ b/platform.h
@@ -154,6 +154,14 @@ class Platform {
virtual bool GetUserId(const std::string& user, uid_t* user_id,
gid_t* group_id);
+ // Return the available disk space in bytes on the volume containing |path|,
+ // or -1 on failure.
+ // Code duplicated from Chrome's base::SysInfo::AmountOfFreeDiskSpace().
+ //
+ // Parameters
+ // path - the pathname of any file within the mounted file system
+ virtual int64 AmountOfFreeDiskSpace(const std::string& path);
+
// Clears the user keyring
static void ClearUserKeyring();
« no previous file with comments | « mount_unittest.cc ('k') | platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698