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

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

Issue 2349823003: Pass a RemovalCause to CookieChangedCallback (Closed)
Patch Set: rebase Created 4 years, 2 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
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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « components/signin/core/browser/signin_cookie_changed_subscription.cc ('k') | ios/net/cookies/cookie_store_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698