| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Brought to you by number 42. | 5 // Brought to you by number 42. |
| 6 | 6 |
| 7 #ifndef NET_COOKIES_COOKIE_STORE_H_ | 7 #ifndef NET_COOKIES_COOKIE_STORE_H_ |
| 8 #define NET_COOKIES_COOKIE_STORE_H_ | 8 #define NET_COOKIES_COOKIE_STORE_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // Returns all the cookies, for use in management UI, etc. This does not mark | 107 // Returns all the cookies, for use in management UI, etc. This does not mark |
| 108 // the cookies as having been accessed. The returned cookies are ordered by | 108 // the cookies as having been accessed. The returned cookies are ordered by |
| 109 // longest path, then by earliest creation date. | 109 // longest path, then by earliest creation date. |
| 110 virtual void GetAllCookiesAsync(const GetCookieListCallback& callback) = 0; | 110 virtual void GetAllCookiesAsync(const GetCookieListCallback& callback) = 0; |
| 111 | 111 |
| 112 // Deletes all cookies that might apply to |url| that have |cookie_name|. | 112 // Deletes all cookies that might apply to |url| that have |cookie_name|. |
| 113 virtual void DeleteCookieAsync(const GURL& url, | 113 virtual void DeleteCookieAsync(const GURL& url, |
| 114 const std::string& cookie_name, | 114 const std::string& cookie_name, |
| 115 const base::Closure& callback) = 0; | 115 const base::Closure& callback) = 0; |
| 116 | 116 |
| 117 // Deletes one specific cookie. |cookie| must have been returned by a previous |
| 118 // query on this CookieStore. Invokes |callback| with 1 if a cookie was |
| 119 // deleted, 0 otherwise. |
| 120 virtual void DeleteCanonicalCookieAsync(const CanonicalCookie& cookie, |
| 121 const DeleteCallback& callback) = 0; |
| 122 |
| 117 // Deletes all of the cookies that have a creation_date greater than or equal | 123 // Deletes all of the cookies that have a creation_date greater than or equal |
| 118 // to |delete_begin| and less than |delete_end| | 124 // to |delete_begin| and less than |delete_end| |
| 119 // Returns the number of cookies that have been deleted. | 125 // Returns the number of cookies that have been deleted. |
| 120 virtual void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin, | 126 virtual void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin, |
| 121 const base::Time& delete_end, | 127 const base::Time& delete_end, |
| 122 const DeleteCallback& callback) = 0; | 128 const DeleteCallback& callback) = 0; |
| 123 | 129 |
| 124 // Deletes all of the cookies that match the host of the given URL | 130 // Deletes all of the cookies that match the host of the given URL |
| 125 // regardless of path and that have a creation_date greater than or | 131 // regardless of path and that have a creation_date greater than or |
| 126 // equal to |delete_begin| and less then |delete_end|. This includes | 132 // equal to |delete_begin| and less then |delete_end|. This includes |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 181 |
| 176 protected: | 182 protected: |
| 177 friend class base::RefCountedThreadSafe<CookieStore>; | 183 friend class base::RefCountedThreadSafe<CookieStore>; |
| 178 CookieStore(); | 184 CookieStore(); |
| 179 virtual ~CookieStore(); | 185 virtual ~CookieStore(); |
| 180 }; | 186 }; |
| 181 | 187 |
| 182 } // namespace net | 188 } // namespace net |
| 183 | 189 |
| 184 #endif // NET_COOKIES_COOKIE_STORE_H_ | 190 #endif // NET_COOKIES_COOKIE_STORE_H_ |
| OLD | NEW |