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

Side by Side Diff: android_webview/browser/net/aw_cookie_store_wrapper.h

Issue 2882063002: Add a SetCanonicalCookie method for CookieMonster. (Closed)
Patch Set: Fix try jobs and do some cleanup. Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include <string> 5 #include <string>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const std::string& domain, 48 const std::string& domain,
49 const std::string& path, 49 const std::string& path,
50 base::Time creation_time, 50 base::Time creation_time,
51 base::Time expiration_time, 51 base::Time expiration_time,
52 base::Time last_access_time, 52 base::Time last_access_time,
53 bool secure, 53 bool secure,
54 bool http_only, 54 bool http_only,
55 net::CookieSameSite same_site, 55 net::CookieSameSite same_site,
56 net::CookiePriority priority, 56 net::CookiePriority priority,
57 const SetCookiesCallback& callback) override; 57 const SetCookiesCallback& callback) override;
58 void SetCanonicalCookieAsync(const net::CanonicalCookie& cookie,
59 bool secure_source,
60 bool modify_http_only,
61 const SetCookiesCallback& callback) override;
58 void GetCookiesWithOptionsAsync(const GURL& url, 62 void GetCookiesWithOptionsAsync(const GURL& url,
59 const net::CookieOptions& options, 63 const net::CookieOptions& options,
60 const GetCookiesCallback& callback) override; 64 const GetCookiesCallback& callback) override;
61 void GetCookieListWithOptionsAsync( 65 void GetCookieListWithOptionsAsync(
62 const GURL& url, 66 const GURL& url,
63 const net::CookieOptions& options, 67 const net::CookieOptions& options,
64 const GetCookieListCallback& callback) override; 68 const GetCookieListCallback& callback) override;
65 void GetAllCookiesAsync(const GetCookieListCallback& callback) override; 69 void GetAllCookiesAsync(const GetCookieListCallback& callback) override;
66 void DeleteCookieAsync(const GURL& url, 70 void DeleteCookieAsync(const GURL& url,
67 const std::string& cookie_name, 71 const std::string& cookie_name,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // Runs |callback|. Used to prevent callbacks from being invoked after the 125 // Runs |callback|. Used to prevent callbacks from being invoked after the
122 // AwCookieStoreWrapper has been destroyed. 126 // AwCookieStoreWrapper has been destroyed.
123 void RunClosureCallback(const base::Closure& callback); 127 void RunClosureCallback(const base::Closure& callback);
124 128
125 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_; 129 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_;
126 130
127 base::WeakPtrFactory<AwCookieStoreWrapper> weak_factory_; 131 base::WeakPtrFactory<AwCookieStoreWrapper> weak_factory_;
128 }; 132 };
129 133
130 } // namesspace android_webview 134 } // namesspace android_webview
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/net/aw_cookie_store_wrapper.cc » ('j') | net/cookies/cookie_monster.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698