OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 IOS_NET_COOKIES_COOKIE_STORE_IOS_H_ | 5 #ifndef IOS_NET_COOKIES_COOKIE_STORE_IOS_H_ |
6 #define IOS_NET_COOKIES_COOKIE_STORE_IOS_H_ | 6 #define IOS_NET_COOKIES_COOKIE_STORE_IOS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 const std::string& name, | 246 const std::string& name, |
247 std::vector<net::CanonicalCookie>* out_removed_cookies, | 247 std::vector<net::CanonicalCookie>* out_removed_cookies, |
248 std::vector<net::CanonicalCookie>* out_added_cookies); | 248 std::vector<net::CanonicalCookie>* out_added_cookies); |
249 | 249 |
250 // Runs all callbacks registered for cookies named |name| that would be sent | 250 // Runs all callbacks registered for cookies named |name| that would be sent |
251 // with a request for |url|. | 251 // with a request for |url|. |
252 // All cookies in |cookies| must have the name equal to |name|. | 252 // All cookies in |cookies| must have the name equal to |name|. |
253 void RunCallbacksForCookies(const GURL& url, | 253 void RunCallbacksForCookies(const GURL& url, |
254 const std::string& name, | 254 const std::string& name, |
255 const std::vector<net::CanonicalCookie>& cookies, | 255 const std::vector<net::CanonicalCookie>& cookies, |
256 bool removed); | 256 net::CookieStore::ChangeCause cause); |
257 | 257 |
258 // Called by this CookieStoreIOS' internal CookieMonster instance when | 258 // Called by this CookieStoreIOS' internal CookieMonster instance when |
259 // GetAllCookiesForURLAsync() completes. Updates the cookie cache and runs | 259 // GetAllCookiesForURLAsync() completes. Updates the cookie cache and runs |
260 // callbacks if the cache changed. | 260 // callbacks if the cache changed. |
261 void GotCookieListFor(const std::pair<GURL, std::string> key, | 261 void GotCookieListFor(const std::pair<GURL, std::string> key, |
262 const net::CookieList& cookies); | 262 const net::CookieList& cookies); |
263 | 263 |
264 // Fetches new values for all (url, name) pairs that have hooks registered, | 264 // Fetches new values for all (url, name) pairs that have hooks registered, |
265 // asynchronously invoking callbacks if necessary. | 265 // asynchronously invoking callbacks if necessary. |
266 void UpdateCachesFromCookieMonster(); | 266 void UpdateCachesFromCookieMonster(); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 hook_map_; | 329 hook_map_; |
330 | 330 |
331 base::WeakPtrFactory<CookieStoreIOS> weak_factory_; | 331 base::WeakPtrFactory<CookieStoreIOS> weak_factory_; |
332 | 332 |
333 DISALLOW_COPY_AND_ASSIGN(CookieStoreIOS); | 333 DISALLOW_COPY_AND_ASSIGN(CookieStoreIOS); |
334 }; | 334 }; |
335 | 335 |
336 } // namespace net | 336 } // namespace net |
337 | 337 |
338 #endif // IOS_NET_COOKIES_COOKIE_STORE_IOS_H_ | 338 #endif // IOS_NET_COOKIES_COOKIE_STORE_IOS_H_ |
OLD | NEW |