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

Unified Diff: chrome/browser/engagement/site_engagement_eviction_policy.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: chrome/browser/engagement/site_engagement_eviction_policy.h
diff --git a/chrome/browser/engagement/site_engagement_eviction_policy.h b/chrome/browser/engagement/site_engagement_eviction_policy.h
index 3ea3fdebfe95f0a14cce771b3f0c70ce30c09126..c11db025e71d681bffc5845e8d8d6af8cfd80a54 100644
--- a/chrome/browser/engagement/site_engagement_eviction_policy.h
+++ b/chrome/browser/engagement/site_engagement_eviction_policy.h
@@ -30,6 +30,7 @@ class SiteEngagementEvictionPolicy : public storage::QuotaEvictionPolicy {
// Overridden from storage::QuotaEvictionPolicy:
void GetEvictionOrigin(const scoped_refptr<storage::SpecialStoragePolicy>&
special_storage_policy,
+ const std::set<GURL>& exceptions,
const storage::GetOriginCallback& callback) override;
private:
@@ -44,6 +45,7 @@ class SiteEngagementEvictionPolicy : public storage::QuotaEvictionPolicy {
const scoped_refptr<storage::SpecialStoragePolicy>&
special_storage_policy,
SiteEngagementScoreProvider* score_provider,
+ const std::set<GURL>& exceptions,
const std::map<GURL, int64>& usage_map,
int64 global_quota);
@@ -56,6 +58,7 @@ class SiteEngagementEvictionPolicy : public storage::QuotaEvictionPolicy {
content::BrowserContext* const browser_context_;
scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
+ std::set<GURL> exceptions_;
std::map<GURL, int64> usage_map_;
int64 global_quota_;

Powered by Google App Engine
This is Rietveld 408576698