Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(772)

Side by Side Diff: ios/net/cookies/cookie_store_ios.h

Issue 2348963002: Remove stl_util's STLDeleteContainerPairSecondPointers from ios/. (Closed)
Patch Set: fix Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ios/net/cookies/cookie_store_ios.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ios/net/cookies/cookie_store_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698