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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 | 317 |
318 SetCookiesCallback WrapSetCallback(const SetCookiesCallback& callback); | 318 SetCookiesCallback WrapSetCallback(const SetCookiesCallback& callback); |
319 DeleteCallback WrapDeleteCallback(const DeleteCallback& callback); | 319 DeleteCallback WrapDeleteCallback(const DeleteCallback& callback); |
320 base::Closure WrapClosure(const base::Closure& callback); | 320 base::Closure WrapClosure(const base::Closure& callback); |
321 | 321 |
322 // Cached values of system cookies. Only cookies which have an observer added | 322 // Cached values of system cookies. Only cookies which have an observer added |
323 // with AddCallbackForCookie are kept in this cache. | 323 // with AddCallbackForCookie are kept in this cache. |
324 std::unique_ptr<CookieCache> cookie_cache_; | 324 std::unique_ptr<CookieCache> cookie_cache_; |
325 | 325 |
326 // Callbacks for cookie changes installed by AddCallbackForCookie. | 326 // Callbacks for cookie changes installed by AddCallbackForCookie. |
327 typedef std::map<std::pair<GURL, std::string>, CookieChangedCallbackList*> | 327 std::map<std::pair<GURL, std::string>, |
328 CookieChangedHookMap; | 328 std::unique_ptr<CookieChangedCallbackList>> |
329 CookieChangedHookMap 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 |