| 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 const std::string& cookie_name, | 92 const std::string& cookie_name, |
| 93 const base::Closure& callback) = 0; | 93 const base::Closure& callback) = 0; |
| 94 | 94 |
| 95 // Deletes all of the cookies that have a creation_date greater than or equal | 95 // Deletes all of the cookies that have a creation_date greater than or equal |
| 96 // to |delete_begin| and less than |delete_end| | 96 // to |delete_begin| and less than |delete_end| |
| 97 // Returns the number of cookies that have been deleted. | 97 // Returns the number of cookies that have been deleted. |
| 98 virtual void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin, | 98 virtual void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin, |
| 99 const base::Time& delete_end, | 99 const base::Time& delete_end, |
| 100 const DeleteCallback& callback) = 0; | 100 const DeleteCallback& callback) = 0; |
| 101 | 101 |
| 102 virtual void DeleteSessionCookiesAsync(const DeleteCallback&) = 0; |
| 103 |
| 102 // Returns the underlying CookieMonster. | 104 // Returns the underlying CookieMonster. |
| 103 virtual CookieMonster* GetCookieMonster() = 0; | 105 virtual CookieMonster* GetCookieMonster() = 0; |
| 104 | 106 |
| 105 protected: | 107 protected: |
| 106 friend class base::RefCountedThreadSafe<CookieStore>; | 108 friend class base::RefCountedThreadSafe<CookieStore>; |
| 107 CookieStore(); | 109 CookieStore(); |
| 108 virtual ~CookieStore(); | 110 virtual ~CookieStore(); |
| 109 }; | 111 }; |
| 110 | 112 |
| 111 } // namespace net | 113 } // namespace net |
| 112 | 114 |
| 113 #endif // NET_COOKIES_COOKIE_STORE_H_ | 115 #endif // NET_COOKIES_COOKIE_STORE_H_ |
| OLD | NEW |