OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |