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

Unified Diff: components/drive/chromeos/file_system_interface.h

Issue 2048993002: Add an API to get total size of Drive cache including non-evictable ones. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove an unnecessary parameter. 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 | « components/drive/chromeos/file_system.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/chromeos/file_system_interface.h
diff --git a/components/drive/chromeos/file_system_interface.h b/components/drive/chromeos/file_system_interface.h
index 92ea36234693fd0ea4e0c4ff818095c120a53d10..ee2b113dbc0373db8367c6f566d8a4c33ed2725c 100644
--- a/components/drive/chromeos/file_system_interface.h
+++ b/components/drive/chromeos/file_system_interface.h
@@ -148,7 +148,7 @@ typedef base::Callback<void(FileError error, const base::FilePath& file_path)>
typedef base::Callback<void(bool)> FreeDiskSpaceCallback;
// Used for returning result of calculated cache size.
-typedef base::Callback<void(uint64_t)> EvictableCacheSizeCallback;
+typedef base::Callback<void(int64_t)> CacheSizeCallback;
// The mode of opening a file.
enum OpenMode {
@@ -468,10 +468,14 @@ class FileSystemInterface {
int64_t num_bytes,
const FreeDiskSpaceCallback& callback) = 0;
+ // Calculates total cache size.
+ // |callback| must not be null.
+ virtual void CalculateCacheSize(const CacheSizeCallback& callback) = 0;
+
// Calculates evictable cache size.
// |callback| must not be null.
virtual void CalculateEvictableCacheSize(
- const EvictableCacheSizeCallback& callback) = 0;
+ const CacheSizeCallback& callback) = 0;
};
} // namespace drive
« no previous file with comments | « components/drive/chromeos/file_system.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698