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

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

Issue 1354543002: Exclude in-use origins from storage evictions for all QuotaEvictionPolicies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hook_it_up_gooood
Patch Set: rebase Created 5 years, 3 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 da280277cf98a90bb0b7cc15f9d555dafdf8959f..2729f6425abfc63efc3fc2ee0191f2f478cf1552 100644
--- a/storage/browser/quota/quota_manager.h
+++ b/storage/browser/quota/quota_manager.h
@@ -83,6 +83,7 @@ class STORAGE_EXPORT QuotaEvictionPolicy {
// are no evictable origins.
virtual void GetEvictionOrigin(
const scoped_refptr<SpecialStoragePolicy>& special_storage_policy,
+ const std::set<GURL>& exceptions,
const GetOriginCallback& callback) = 0;
};
@@ -380,6 +381,7 @@ class STORAGE_EXPORT QuotaManager
void DidGetPersistentGlobalUsageForHistogram(int64 usage,
int64 unlimited_usage);
+ std::set<GURL> GetEvictionOriginExceptions();
void DidGetEvictionOrigin(const GetOriginCallback& callback,
const GURL& origin);

Powered by Google App Engine
This is Rietveld 408576698