| Index: net/cookies/cookie_monster.h
|
| diff --git a/net/cookies/cookie_monster.h b/net/cookies/cookie_monster.h
|
| index 1ddbccc16270d77c15132f5c3703d56cc2f564bb..f82f18f641346b26bea2aaa8fef9b7f667cf55aa 100644
|
| --- a/net/cookies/cookie_monster.h
|
| +++ b/net/cookies/cookie_monster.h
|
| @@ -257,8 +257,9 @@ class NET_EXPORT CookieMonster : public CookieStore {
|
|
|
| // For garbage collection constants.
|
| FRIEND_TEST_ALL_PREFIXES(CookieMonsterTest, TestHostGarbageCollection);
|
| - FRIEND_TEST_ALL_PREFIXES(CookieMonsterTest, TestTotalGarbageCollection);
|
| FRIEND_TEST_ALL_PREFIXES(CookieMonsterTest, GarbageCollectionTriggers);
|
| + FRIEND_TEST_ALL_PREFIXES(CookieMonsterTest,
|
| + GarbageCollectWithSecureCookiesOnly);
|
| FRIEND_TEST_ALL_PREFIXES(CookieMonsterTest, TestGCTimes);
|
|
|
| // For validation of key values.
|
| @@ -605,10 +606,14 @@ class NET_EXPORT CookieMonster : public CookieStore {
|
| // Helper for GarbageCollect(). Deletes cookies in |cookie_its| from least to
|
| // most recently used, but only before |safe_date|. Also will stop deleting
|
| // when the number of remaining cookies hits |purge_goal|.
|
| + //
|
| + // Sets |earliest_time| to be the earliest last access time of a cookie that
|
| + // was not deleted, or base::Time() if no such cookie exists.
|
| size_t GarbageCollectLeastRecentlyAccessed(const base::Time& current,
|
| const base::Time& safe_date,
|
| size_t purge_goal,
|
| - CookieItVector cookie_its);
|
| + CookieItVector cookie_its,
|
| + base::Time* earliest_time);
|
|
|
| // Find the key (for lookup in cookies_) based on the given domain.
|
| // See comment on keys before the CookieMap typedef.
|
|
|