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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "net/cookies/cookie_monster.h" | 9 #include "net/cookies/cookie_monster.h" |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 virtual void DeleteCookieAsync(const GURL& url, | 57 virtual void DeleteCookieAsync(const GURL& url, |
58 const std::string& cookie_name, | 58 const std::string& cookie_name, |
59 const base::Closure& callback) OVERRIDE; | 59 const base::Closure& callback) OVERRIDE; |
60 | 60 |
61 virtual void DeleteAllCreatedBetweenAsync( | 61 virtual void DeleteAllCreatedBetweenAsync( |
62 const base::Time& delete_begin, | 62 const base::Time& delete_begin, |
63 const base::Time& delete_end, | 63 const base::Time& delete_end, |
64 const DeleteCallback& callback) OVERRIDE; | 64 const DeleteCallback& callback) OVERRIDE; |
65 | 65 |
| 66 virtual void DeleteSessionCookiesAsync(const DeleteCallback&) OVERRIDE; |
| 67 |
66 virtual CookieMonster* GetCookieMonster() OVERRIDE; | 68 virtual CookieMonster* GetCookieMonster() OVERRIDE; |
67 | 69 |
68 private: | 70 private: |
69 | 71 |
70 // Be called immediately from CookieMonster. | 72 // Be called immediately from CookieMonster. |
71 | 73 |
72 void GetCookiesInternalCallback( | 74 void GetCookiesInternalCallback( |
73 const std::string& cookie_line, | 75 const std::string& cookie_line, |
74 const std::vector<CookieStore::CookieInfo>& cookie_info); | 76 const std::vector<CookieStore::CookieInfo>& cookie_info); |
75 | 77 |
(...skipping 20 matching lines...) Expand all Loading... |
96 bool did_run_; | 98 bool did_run_; |
97 bool result_; | 99 bool result_; |
98 std::string cookie_; | 100 std::string cookie_; |
99 std::string cookie_line_; | 101 std::string cookie_line_; |
100 std::vector<CookieStore::CookieInfo> cookie_info_; | 102 std::vector<CookieStore::CookieInfo> cookie_info_; |
101 }; | 103 }; |
102 | 104 |
103 } // namespace net | 105 } // namespace net |
104 | 106 |
105 #endif // NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_ | 107 #endif // NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_ |
OLD | NEW |