OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "android_webview/native/cookie_manager.h" | 5 #include "android_webview/native/cookie_manager.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 void RemoveAllCookies(std::unique_ptr<BoolCookieCallbackHolder> callback); | 174 void RemoveAllCookies(std::unique_ptr<BoolCookieCallbackHolder> callback); |
175 void RemoveAllCookiesSync(); | 175 void RemoveAllCookiesSync(); |
176 void RemoveSessionCookiesSync(); | 176 void RemoveSessionCookiesSync(); |
177 void RemoveExpiredCookies(); | 177 void RemoveExpiredCookies(); |
178 void FlushCookieStore(); | 178 void FlushCookieStore(); |
179 bool HasCookies(); | 179 bool HasCookies(); |
180 bool AllowFileSchemeCookies(); | 180 bool AllowFileSchemeCookies(); |
181 void SetAcceptFileSchemeCookies(bool accept); | 181 void SetAcceptFileSchemeCookies(bool accept); |
182 | 182 |
183 private: | 183 private: |
184 friend struct base::DefaultLazyInstanceTraits<CookieManager>; | 184 friend struct base::LazyInstanceTraitsBase<CookieManager>; |
185 | 185 |
186 CookieManager(); | 186 CookieManager(); |
187 ~CookieManager(); | 187 ~CookieManager(); |
188 | 188 |
189 void ExecCookieTaskSync(const base::Callback<void(BoolCallback)>& task); | 189 void ExecCookieTaskSync(const base::Callback<void(BoolCallback)>& task); |
190 void ExecCookieTaskSync(const base::Callback<void(IntCallback)>& task); | 190 void ExecCookieTaskSync(const base::Callback<void(IntCallback)>& task); |
191 void ExecCookieTaskSync(const base::Callback<void(base::Closure)>& task); | 191 void ExecCookieTaskSync(const base::Callback<void(base::Closure)>& task); |
192 void ExecCookieTask(const base::Closure& task); | 192 void ExecCookieTask(const base::Closure& task); |
193 | 193 |
194 void SetCookieHelper(const GURL& host, | 194 void SetCookieHelper(const GURL& host, |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 | 618 |
619 net::CookieStore* GetCookieStore() { | 619 net::CookieStore* GetCookieStore() { |
620 return CookieManager::GetInstance()->GetCookieStore(); | 620 return CookieManager::GetInstance()->GetCookieStore(); |
621 } | 621 } |
622 | 622 |
623 bool RegisterCookieManager(JNIEnv* env) { | 623 bool RegisterCookieManager(JNIEnv* env) { |
624 return RegisterNativesImpl(env); | 624 return RegisterNativesImpl(env); |
625 } | 625 } |
626 | 626 |
627 } // android_webview namespace | 627 } // android_webview namespace |
OLD | NEW |