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

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

Issue 1229933007: Make quota logic obey durable storage permission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@3_top_durable
Patch Set: fix extensions_browsertests compile Created 5 years, 5 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_database.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/quota/special_storage_policy.h
diff --git a/storage/browser/quota/special_storage_policy.h b/storage/browser/quota/special_storage_policy.h
index d164e94281229c3ef7568d1d875f16a821903c83..5c97806a0b8d0beb4cb9cb1ec6ca296ea41bd30d 100644
--- a/storage/browser/quota/special_storage_policy.h
+++ b/storage/browser/quota/special_storage_policy.h
@@ -45,9 +45,12 @@ class STORAGE_EXPORT SpecialStoragePolicy
// Protected storage is not subject to removal by the browsing data remover.
virtual bool IsStorageProtected(const GURL& origin) = 0;
- // Unlimited storage is not subject to 'quotas'.
+ // Unlimited storage is not subject to quota or storage pressure eviction.
virtual bool IsStorageUnlimited(const GURL& origin) = 0;
+ // Durable storage is not subject to storage pressure eviction.
+ virtual bool IsStorageDurable(const GURL& origin) = 0;
+
// Some origins (e.g. installed apps) have access to the size of the remaining
// disk capacity.
virtual bool CanQueryDiskSize(const GURL& origin) = 0;
« no previous file with comments | « storage/browser/quota/quota_database.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698