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

Unified Diff: net/cookies/cookie_monster.h

Issue 1705753002: Evict non-secure cookies less agressively. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | net/cookies/cookie_monster.cc » ('j') | net/cookies/cookie_monster.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_monster.h
diff --git a/net/cookies/cookie_monster.h b/net/cookies/cookie_monster.h
index 0ad3c94ddf6bb06df89ecad8d46cd2e522ca4028..69971373e80e1e71c08ac733de50007351557074 100644
--- a/net/cookies/cookie_monster.h
+++ b/net/cookies/cookie_monster.h
@@ -129,9 +129,9 @@ class NET_EXPORT CookieMonster : public CookieStore {
static const size_t kPurgeCookies;
// Quota for cookies with {low, medium, high} priorities within a domain.
- static const size_t kDomainCookiesQuotaLow;
- static const size_t kDomainCookiesQuotaMedium;
- static const size_t kDomainCookiesQuotaHigh;
+ static const float kDomainCookiesQuotaLow;
jww 2016/02/18 01:05:19 I think an explanation of this being a float is ne
+ static const float kDomainCookiesQuotaMedium;
+ static const float kDomainCookiesQuotaHigh;
// The store passed in should not have had Init() called on it yet. This
// class will take care of initializing it. The backing store is NOT owned by
@@ -375,6 +375,8 @@ class NET_EXPORT CookieMonster : public CookieStore {
COOKIE_DELETE_EQUIVALENT_LAST_ENTRY
};
+ enum GCType { GC_NONSECURE, GC_SECURE };
+
// The strategy for fetching cookies. Controlled by Finch experiment.
enum FetchStrategy {
// Fetches all cookies only when they're needed.
@@ -591,6 +593,12 @@ class NET_EXPORT CookieMonster : public CookieStore {
size_t purge_goal,
CookieItVector cookie_its);
+ size_t GarbageCollectNumFromRangeWithQuota(const base::Time& current,
+ const base::Time& safe_date,
+ size_t purge_goal,
+ CookieItVector::iterator* it_bdd,
+ GCType type);
+
// Find the key (for lookup in cookies_) based on the given domain.
// See comment on keys before the CookieMap typedef.
std::string GetKey(const std::string& domain) const;
« no previous file with comments | « no previous file | net/cookies/cookie_monster.cc » ('j') | net/cookies/cookie_monster.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698