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

Unified Diff: ios/net/cookies/cookie_store_ios_persistent.h

Issue 2937963003: Shift cookie system callbacks to OnceCallback to impedance match mojo. (Closed)
Patch Set: Finish Merge Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ios/net/cookies/cookie_store_ios_persistent.h
diff --git a/ios/net/cookies/cookie_store_ios_persistent.h b/ios/net/cookies/cookie_store_ios_persistent.h
index 18dba8fbfb910481fb9cf0a1ec6f5b4c09164a91..70f798b34eb5a58ab53a121cb61a3bc2c230b286 100644
--- a/ios/net/cookies/cookie_store_ios_persistent.h
+++ b/ios/net/cookies/cookie_store_ios_persistent.h
@@ -39,7 +39,7 @@ class CookieStoreIOSPersistent : public CookieStoreIOS {
void SetCookieWithOptionsAsync(const GURL& url,
const std::string& cookie_line,
const net::CookieOptions& options,
- const SetCookiesCallback& callback) override;
+ SetCookiesCallback callback) override;
void SetCookieWithDetailsAsync(const GURL& url,
const std::string& name,
const std::string& value,
@@ -52,33 +52,32 @@ class CookieStoreIOSPersistent : public CookieStoreIOS {
bool http_only,
CookieSameSite same_site,
CookiePriority priority,
- const SetCookiesCallback& callback) override;
+ SetCookiesCallback callback) override;
void SetCanonicalCookieAsync(std::unique_ptr<CanonicalCookie> cookie,
bool secure_source,
bool modify_http_only,
- const SetCookiesCallback& callback) override;
+ SetCookiesCallback callback) override;
void GetCookiesWithOptionsAsync(const GURL& url,
const net::CookieOptions& options,
- const GetCookiesCallback& callback) override;
- void GetCookieListWithOptionsAsync(
- const GURL& url,
- const net::CookieOptions& options,
- const GetCookieListCallback& callback) override;
- void GetAllCookiesAsync(const GetCookieListCallback& callback) override;
+ GetCookiesCallback callback) override;
+ void GetCookieListWithOptionsAsync(const GURL& url,
+ const net::CookieOptions& options,
+ GetCookieListCallback callback) override;
+ void GetAllCookiesAsync(GetCookieListCallback callback) override;
void DeleteCookieAsync(const GURL& url,
const std::string& cookie_name,
- const base::Closure& callback) override;
+ base::OnceClosure callback) override;
void DeleteCanonicalCookieAsync(const CanonicalCookie& cookie,
- const DeleteCallback& callback) override;
+ DeleteCallback callback) override;
void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin,
const base::Time& delete_end,
- const DeleteCallback& callback) override;
+ DeleteCallback callback) override;
void DeleteAllCreatedBetweenWithPredicateAsync(
const base::Time& delete_begin,
const base::Time& delete_end,
const CookiePredicate& predicate,
- const DeleteCallback& callback) override;
- void DeleteSessionCookiesAsync(const DeleteCallback& callback) override;
+ DeleteCallback callback) override;
+ void DeleteSessionCookiesAsync(DeleteCallback callback) override;
private:
// No-op functions for this class.

Powered by Google App Engine
This is Rietveld 408576698