OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BASE_COOKIE_STORE_TEST_HELPERS_H_ | 5 #ifndef NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ |
6 #define NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ | 6 #define NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "net/base/cookie_monster.h" | 9 #include "net/base/cookie_monster.h" |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const std::string& cookie_name, | 58 const std::string& cookie_name, |
59 const base::Closure& callback); | 59 const base::Closure& callback); |
60 | 60 |
61 virtual CookieMonster* GetCookieMonster(); | 61 virtual CookieMonster* GetCookieMonster(); |
62 | 62 |
63 private: | 63 private: |
64 | 64 |
65 // Be called immediately from CookieMonster. | 65 // Be called immediately from CookieMonster. |
66 | 66 |
67 void GetCookiesInternalCallback( | 67 void GetCookiesInternalCallback( |
68 std::string* cookie_line, | 68 const std::string& cookie_line, |
69 std::vector<CookieStore::CookieInfo>* cookie_info); | 69 const std::vector<CookieStore::CookieInfo>& cookie_info); |
70 | 70 |
71 void SetCookiesInternalCallback(bool result); | 71 void SetCookiesInternalCallback(bool result); |
72 | 72 |
73 void GetCookiesWithOptionsInternalCallback(std::string cookie); | 73 void GetCookiesWithOptionsInternalCallback(std::string cookie); |
74 | 74 |
75 // Invoke the original callbacks. | 75 // Invoke the original callbacks. |
76 | 76 |
77 void InvokeGetCookiesCallback( | 77 void InvokeGetCookiesCallback( |
78 const CookieMonster::GetCookieInfoCallback& callback); | 78 const CookieMonster::GetCookieInfoCallback& callback); |
79 | 79 |
(...skipping 11 matching lines...) Expand all Loading... |
91 bool did_run_; | 91 bool did_run_; |
92 bool result_; | 92 bool result_; |
93 std::string cookie_; | 93 std::string cookie_; |
94 std::string cookie_line_; | 94 std::string cookie_line_; |
95 std::vector<CookieStore::CookieInfo> cookie_info_; | 95 std::vector<CookieStore::CookieInfo> cookie_info_; |
96 }; | 96 }; |
97 | 97 |
98 } // namespace net | 98 } // namespace net |
99 | 99 |
100 #endif // NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ | 100 #endif // NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ |
OLD | NEW |