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

Side by Side Diff: android_webview/native/cookie_manager.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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 | « android_webview/native/aw_metrics_service_client_impl.h ('k') | base/android/jni_android.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) 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
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
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
OLDNEW
« no previous file with comments | « android_webview/native/aw_metrics_service_client_impl.h ('k') | base/android/jni_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698