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

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: Fix typo and the order of storage items. 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..2e54b74cdd5c0650f32b07dbc368d8e672711f7e 100644
--- a/chromeos/cryptohome/homedir_methods.h
+++ b/chromeos/cryptohome/homedir_methods.h
@@ -5,6 +5,8 @@
#ifndef CHROMEOS_CRYPTOHOME_HOMEDIR_METHODS_H_
#define CHROMEOS_CRYPTOHOME_HOMEDIR_METHODS_H_
+#include <stdint.h>
+
#include <string>
#include <vector>
@@ -30,6 +32,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)>
+ GetAccountDiskUsageCallback;
virtual ~HomedirMethods() {}
@@ -95,6 +99,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();
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/storage_manager_handler.cc ('k') | chromeos/cryptohome/homedir_methods.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698