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

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

Issue 2777183010: [Quota] Lower quota for ephemeral mode (ie. session only) (Closed)
Patch Set: comments Created 3 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
« no previous file with comments | « storage/browser/quota/quota_manager.cc ('k') | storage/browser/quota/quota_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..19236cab12c9bd5964f565ba1979e3a98c3ce512 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 SpecialStoragePolicy provided by the embedder.
+ 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.
« no previous file with comments | « storage/browser/quota/quota_manager.cc ('k') | storage/browser/quota/quota_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698