| Index: net/cookies/cookie_monster.h
|
| diff --git a/net/cookies/cookie_monster.h b/net/cookies/cookie_monster.h
|
| index 14c5a08c4df7d7d97e743f2bd00d07e363c8fd74..29b240744b8cee758007cbd307efe67fcd057ac3 100644
|
| --- a/net/cookies/cookie_monster.h
|
| +++ b/net/cookies/cookie_monster.h
|
| @@ -188,6 +188,11 @@ class NET_EXPORT CookieMonster : public CookieStore {
|
| const base::Time delete_end,
|
| const GURL& url,
|
| const DeleteCallback& callback) override;
|
| + void DeleteAllCreatedBetweenWithPredicateAsync(
|
| + const base::Time& delete_begin,
|
| + const base::Time& delete_end,
|
| + const base::Callback<bool(const CanonicalCookie&)>& predicate,
|
| + const DeleteCallback& callback) override;
|
| void DeleteSessionCookiesAsync(const DeleteCallback&) override;
|
| void FlushStore(const base::Closure& callback) override;
|
| void SetForceKeepSessionState() override;
|
| @@ -222,6 +227,7 @@ class NET_EXPORT CookieMonster : public CookieStore {
|
| class DeleteTask;
|
| class DeleteAllCreatedBetweenTask;
|
| class DeleteAllCreatedBetweenForHostTask;
|
| + class DeleteAllCreatedBetweenWithPredicateTask;
|
| class DeleteCookieTask;
|
| class DeleteCanonicalCookieTask;
|
| class GetCookieListForURLWithOptionsTask;
|
| @@ -237,6 +243,9 @@ class NET_EXPORT CookieMonster : public CookieStore {
|
| // For SetCookieWithCreationTime.
|
| FRIEND_TEST_ALL_PREFIXES(CookieMonsterTest,
|
| TestCookieDeleteAllCreatedBetweenTimestamps);
|
| + FRIEND_TEST_ALL_PREFIXES(
|
| + CookieMonsterTest,
|
| + TestCookieDeleteAllCreatedBetweenTimestampsWithPredicate);
|
|
|
| // For gargage collection constants.
|
| FRIEND_TEST_ALL_PREFIXES(CookieMonsterTest, TestHostGarbageCollection);
|
| @@ -408,6 +417,12 @@ class NET_EXPORT CookieMonster : public CookieStore {
|
| const base::Time delete_end,
|
| const GURL& url);
|
|
|
| + // Predicate will be called with the calling thread.
|
| + int DeleteAllCreatedBetweenWithPredicate(
|
| + const base::Time& delete_begin,
|
| + const base::Time& delete_end,
|
| + const base::Callback<bool(const CanonicalCookie&)>& predicate);
|
| +
|
| bool SetCookieWithOptions(const GURL& url,
|
| const std::string& cookie_line,
|
| const CookieOptions& options);
|
|
|