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

Unified Diff: components/drive/chromeos/file_cache.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/fake_file_system.cc ('k') | components/drive/chromeos/file_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/chromeos/file_cache.h
diff --git a/components/drive/chromeos/file_cache.h b/components/drive/chromeos/file_cache.h
index 2d17202e0db0935486550a142acd804bc1d86aaf..ab23b62719373fdb8f3552053382c9056b7e0346 100644
--- a/components/drive/chromeos/file_cache.h
+++ b/components/drive/chromeos/file_cache.h
@@ -93,8 +93,11 @@ class FileCache {
// false.
bool FreeDiskSpaceIfNeededFor(int64_t num_bytes);
+ // Calculates and returns cache size. In error case, this returns 0.
+ int64_t CalculateCacheSize();
+
// Calculates and returns evictable cache size. In error case, this returns 0.
- uint64_t CalculateEvictableCacheSize();
+ int64_t CalculateEvictableCacheSize();
// Checks if file corresponding to |id| exists in cache, and returns
// FILE_ERROR_OK with |cache_file_path| storing the path to the file.
« no previous file with comments | « components/drive/chromeos/fake_file_system.cc ('k') | components/drive/chromeos/file_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698