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

Unified Diff: storage/browser/quota/quota_manager.h

Issue 1782053004: Change how the quota system computes the total poolsize for temporary storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: storage/browser/quota/quota_manager.h
diff --git a/storage/browser/quota/quota_manager.h b/storage/browser/quota/quota_manager.h
index cd691db9491dbbf0324fc27b43d8f14c8a38e5b5..7b8b4142cd2be9eac5a094bc2d154128e71e1782 100644
--- a/storage/browser/quota/quota_manager.h
+++ b/storage/browser/quota/quota_manager.h
@@ -441,6 +441,8 @@ class STORAGE_EXPORT QuotaManager
int64_t quota_unused);
void DidInitializeTemporaryOriginsInfo(bool success);
void DidGetAvailableSpace(int64_t space);
+ void DidCalculateTemporaryPoolSize(const QuotaCallback& callback,
+ int64_t pool_size);
void DidDatabaseWork(bool success);
void DeleteOnCorrectThread() const;
@@ -450,6 +452,9 @@ class STORAGE_EXPORT QuotaManager
const base::Callback<bool(QuotaDatabase*)>& task,
const base::Callback<void(bool)>& reply);
+ static int64_t CalculateTemporaryPoolSize(
+ GetVolumeInfoFn get_vol_info_fn,
+ const base::FilePath& profile_path);
static int64_t CallGetAmountOfFreeDiskSpace(
GetVolumeInfoFn get_vol_info_fn,
const base::FilePath& profile_path);

Powered by Google App Engine
This is Rietveld 408576698