| 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 #ifndef NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_ | 5 #ifndef NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_ |
| 6 #define NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_ | 6 #define NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_ |
| 7 | 7 |
| 8 #include "net/cookies/cookie_monster.h" | 8 #include "net/cookies/cookie_monster.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const DeleteCallback& callback) override; | 56 const DeleteCallback& callback) override; |
| 57 | 57 |
| 58 void DeleteAllCreatedBetweenForHostAsync( | 58 void DeleteAllCreatedBetweenForHostAsync( |
| 59 const base::Time delete_begin, | 59 const base::Time delete_begin, |
| 60 const base::Time delete_end, | 60 const base::Time delete_end, |
| 61 const GURL& url, | 61 const GURL& url, |
| 62 const DeleteCallback& callback) override; | 62 const DeleteCallback& callback) override; |
| 63 | 63 |
| 64 void DeleteSessionCookiesAsync(const DeleteCallback&) override; | 64 void DeleteSessionCookiesAsync(const DeleteCallback&) override; |
| 65 | 65 |
| 66 void FlushStore(const base::Closure& callback) override; |
| 67 |
| 66 CookieMonster* GetCookieMonster() override; | 68 CookieMonster* GetCookieMonster() override; |
| 67 | 69 |
| 68 scoped_ptr<CookieStore::CookieChangedSubscription> | 70 scoped_ptr<CookieStore::CookieChangedSubscription> |
| 69 AddCallbackForCookie(const GURL& url, const std::string& name, | 71 AddCallbackForCookie(const GURL& url, const std::string& name, |
| 70 const CookieChangedCallback& callback) override; | 72 const CookieChangedCallback& callback) override; |
| 71 | 73 |
| 72 private: | 74 private: |
| 73 // Be called immediately from CookieMonster. | 75 // Be called immediately from CookieMonster. |
| 74 | 76 |
| 75 void SetCookiesInternalCallback(bool result); | 77 void SetCookiesInternalCallback(bool result); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 113 |
| 112 private: | 114 private: |
| 113 const GURL url_; | 115 const GURL url_; |
| 114 const std::string registry_; | 116 const std::string registry_; |
| 115 const std::string domain_and_registry_; | 117 const std::string domain_and_registry_; |
| 116 }; | 118 }; |
| 117 | 119 |
| 118 } // namespace net | 120 } // namespace net |
| 119 | 121 |
| 120 #endif // NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_ | 122 #endif // NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_ |
| OLD | NEW |