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

Unified Diff: chromeos/cryptohome/homedir_methods.h

Issue 2111043003: Storage manager: Show the disk usage of other users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set a fake size. 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
Index: chromeos/cryptohome/homedir_methods.h
diff --git a/chromeos/cryptohome/homedir_methods.h b/chromeos/cryptohome/homedir_methods.h
index 3f40f4a45afdc7283f282a3abffd7e3d6c150b5c..2117e50ab62a95ef3775d50e1b5a9bce22686b91 100644
--- a/chromeos/cryptohome/homedir_methods.h
+++ b/chromeos/cryptohome/homedir_methods.h
@@ -30,6 +30,8 @@ class CHROMEOS_EXPORT HomedirMethods {
typedef base::Callback<
void(bool success, MountError return_code, const std::string& mount_hash)>
MountCallback;
+ typedef base::Callback<void(bool success, int64_t size)>
Dan Beam 2016/06/30 23:24:09 nit: #include <stddef.h> for int64_t
fukino 2016/06/30 23:59:03 Done.
+ GetAccountDiskUsageCallback;
virtual ~HomedirMethods() {}
@@ -95,6 +97,12 @@ class CHROMEOS_EXPORT HomedirMethods {
const Identification& id_to,
const Callback& callback) = 0;
+ // Asks cryptohomed to compute the size of cryptohome for user identified by
+ // |id|.
+ virtual void GetAccountDiskUsage(
+ const Identification& id,
+ const GetAccountDiskUsageCallback& callback) = 0;
+
// Creates the global HomedirMethods instance.
static void Initialize();

Powered by Google App Engine
This is Rietveld 408576698