Chromium Code Reviews| Index: net/cookies/cookie_store.h |
| diff --git a/net/cookies/cookie_store.h b/net/cookies/cookie_store.h |
| index 64852612d53fc2f544c344b4b0d88467c8acbdd5..bc5137ddd5b60783a00224b82ecb140b95d99132 100644 |
| --- a/net/cookies/cookie_store.h |
| +++ b/net/cookies/cookie_store.h |
| @@ -10,7 +10,7 @@ |
| #include <string> |
| #include <vector> |
| -#include "base/callback.h" |
| +#include "base/callback_forward.h" |
| #include "base/callback_list.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "base/time/time.h" |
| @@ -43,6 +43,7 @@ class NET_EXPORT CookieStore { |
| typedef base::CallbackList<void(const CanonicalCookie& cookie, bool removed)> |
| CookieChangedCallbackList; |
| typedef CookieChangedCallbackList::Subscription CookieChangedSubscription; |
| + typedef base::Callback<bool(const CanonicalCookie& cookie)> CookiePredicate; |
| virtual ~CookieStore(); |
| @@ -167,6 +168,17 @@ class NET_EXPORT CookieStore { |
| const GURL& url, |
| const DeleteCallback& callback) = 0; |
| + // Deletes all of the cookies that match the given predicate and that have a |
| + // creation_date greater than or equal to |delete_begin| and less then |
| + // |delete_end|. Make sure you know what you are doing here so you don't break |
| + // the web. |
| + // Returns the number of cookies deleted. |
|
Mike West
2016/03/11 08:36:11
It calls |callback| with the number of cookies del
dmurph
2016/03/30 22:21:27
Done.
|
| + virtual void DeleteAllCreatedBetweenWithPredicateAsync( |
| + const base::Time& delete_begin, |
| + const base::Time& delete_end, |
| + const CookiePredicate& predicate, |
| + const DeleteCallback& callback) = 0; |
| + |
| virtual void DeleteSessionCookiesAsync(const DeleteCallback&) = 0; |
| // Deletes all cookies in the store. |