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

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

Issue 2777183010: [Quota] Lower quota for ephemeral mode (ie. session only) (Closed)
Patch Set: randomize Created 3 years, 9 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_settings.h
diff --git a/storage/browser/quota/quota_settings.h b/storage/browser/quota/quota_settings.h
index 5207eb6c9b126e0be4962e3a276bc8d2a115ebab..bbc1ff5cf8907532f2010688f3efae793661f7c0 100644
--- a/storage/browser/quota/quota_settings.h
+++ b/storage/browser/quota/quota_settings.h
@@ -24,6 +24,7 @@ struct QuotaSettings {
int64_t must_remain_available)
: pool_size(pool_size),
per_host_quota(per_host_quota),
+ session_only_per_host_quota(per_host_quota),
should_remain_available(should_remain_available),
must_remain_available(must_remain_available) {}
@@ -36,6 +37,10 @@ struct QuotaSettings {
// value must be less than or equal to the pool_size.
int64_t per_host_quota = 0;
+ // The amount allotted to origins that are considered session only
+ // according to the SpecialStoargePolicy provided by the embedder.
jsbell 2017/04/04 16:23:57 typo: 'Stoarge'
michaeln 2017/04/05 01:20:56 Done.
+ int64_t session_only_per_host_quota = 0;
+
// The amount of space that should remain available on the storage
// volume. As the volume approaches this limit, the quota system gets
// more aggressive about evicting data.

Powered by Google App Engine
This is Rietveld 408576698