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

Side by Side Diff: net/cookies/cookie_monster.h

Issue 2971733002: Change CookieStore::DeleteCallback to take uint32_t. (Closed)
Patch Set: Got rid of rest of <cstdint> stuff. Created 3 years, 5 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 | « ios/net/cookies/cookie_store_ios.mm ('k') | net/cookies/cookie_monster.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // Brought to you by the letter D and the number 2. 5 // Brought to you by the letter D and the number 2.
6 6
7 #ifndef NET_COOKIES_COOKIE_MONSTER_H_ 7 #ifndef NET_COOKIES_COOKIE_MONSTER_H_
8 #define NET_COOKIES_COOKIE_MONSTER_H_ 8 #define NET_COOKIES_COOKIE_MONSTER_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 // to affect http_only cookies. 437 // to affect http_only cookies.
438 bool SetCanonicalCookie(std::unique_ptr<CanonicalCookie> cookie, 438 bool SetCanonicalCookie(std::unique_ptr<CanonicalCookie> cookie,
439 bool secure_source, 439 bool secure_source,
440 bool can_modify_httponly); 440 bool can_modify_httponly);
441 441
442 CookieList GetAllCookies(); 442 CookieList GetAllCookies();
443 443
444 CookieList GetCookieListWithOptions(const GURL& url, 444 CookieList GetCookieListWithOptions(const GURL& url,
445 const CookieOptions& options); 445 const CookieOptions& options);
446 446
447 int DeleteAllCreatedBetween(const base::Time& delete_begin, 447 uint32_t DeleteAllCreatedBetween(const base::Time& delete_begin,
448 const base::Time& delete_end); 448 const base::Time& delete_end);
449 449
450 // Predicate will be called with the calling thread. 450 // Predicate will be called with the calling thread.
451 int DeleteAllCreatedBetweenWithPredicate( 451 uint32_t DeleteAllCreatedBetweenWithPredicate(
452 const base::Time& delete_begin, 452 const base::Time& delete_begin,
453 const base::Time& delete_end, 453 const base::Time& delete_end,
454 const base::Callback<bool(const CanonicalCookie&)>& predicate); 454 const base::Callback<bool(const CanonicalCookie&)>& predicate);
455 455
456 bool SetCookieWithOptions(const GURL& url, 456 bool SetCookieWithOptions(const GURL& url,
457 const std::string& cookie_line, 457 const std::string& cookie_line,
458 const CookieOptions& options); 458 const CookieOptions& options);
459 459
460 std::string GetCookiesWithOptions(const GURL& url, 460 std::string GetCookiesWithOptions(const GURL& url,
461 const CookieOptions& options); 461 const CookieOptions& options);
462 462
463 void DeleteCookie(const GURL& url, const std::string& cookie_name); 463 void DeleteCookie(const GURL& url, const std::string& cookie_name);
464 464
465 int DeleteCanonicalCookie(const CanonicalCookie& cookie); 465 uint32_t DeleteCanonicalCookie(const CanonicalCookie& cookie);
466 466
467 bool SetCookieWithCreationTime(const GURL& url, 467 bool SetCookieWithCreationTime(const GURL& url,
468 const std::string& cookie_line, 468 const std::string& cookie_line,
469 const base::Time& creation_time); 469 const base::Time& creation_time);
470 470
471 int DeleteSessionCookies(); 471 uint32_t DeleteSessionCookies();
472 472
473 // The first access to the cookie store initializes it. This method should be 473 // The first access to the cookie store initializes it. This method should be
474 // called before any access to the cookie store. 474 // called before any access to the cookie store.
475 void MarkCookieStoreAsInitialized(); 475 void MarkCookieStoreAsInitialized();
476 476
477 // Fetches all cookies if the backing store exists and they're not already 477 // Fetches all cookies if the backing store exists and they're not already
478 // being fetched. 478 // being fetched.
479 void FetchAllCookiesIfNecessary(); 479 void FetchAllCookiesIfNecessary();
480 480
481 // Fetches all cookies from the backing store. 481 // Fetches all cookies from the backing store.
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 virtual ~PersistentCookieStore() {} 830 virtual ~PersistentCookieStore() {}
831 831
832 private: 832 private:
833 friend class base::RefCountedThreadSafe<PersistentCookieStore>; 833 friend class base::RefCountedThreadSafe<PersistentCookieStore>;
834 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); 834 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore);
835 }; 835 };
836 836
837 } // namespace net 837 } // namespace net
838 838
839 #endif // NET_COOKIES_COOKIE_MONSTER_H_ 839 #endif // NET_COOKIES_COOKIE_MONSTER_H_
OLDNEW
« no previous file with comments | « ios/net/cookies/cookie_store_ios.mm ('k') | net/cookies/cookie_monster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698