| 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 "android_webview/browser/aw_cookie_access_policy.h" | 7 #include "android_webview/browser/aw_cookie_access_policy.h" |
| 8 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" | 8 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" |
| 9 #include "android_webview/native/aw_browser_dependency_factory.h" | 9 #include "android_webview/native/aw_browser_dependency_factory.h" |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 | 341 |
| 342 static jboolean AllowFileSchemeCookies(JNIEnv* env, jobject obj) { | 342 static jboolean AllowFileSchemeCookies(JNIEnv* env, jobject obj) { |
| 343 return CookieManager::GetInstance()->AllowFileSchemeCookies(); | 343 return CookieManager::GetInstance()->AllowFileSchemeCookies(); |
| 344 } | 344 } |
| 345 | 345 |
| 346 static void SetAcceptFileSchemeCookies(JNIEnv* env, jobject obj, | 346 static void SetAcceptFileSchemeCookies(JNIEnv* env, jobject obj, |
| 347 jboolean accept) { | 347 jboolean accept) { |
| 348 return CookieManager::GetInstance()->SetAcceptFileSchemeCookies(accept); | 348 return CookieManager::GetInstance()->SetAcceptFileSchemeCookies(accept); |
| 349 } | 349 } |
| 350 | 350 |
| 351 void SetCookieMonsterOnNetworkStackInit( | 351 void SetCookieMonsterOnNetworkStackInit(net::URLRequestContext* context) { |
| 352 net::URLRequestContext* context, | |
| 353 AwURLRequestJobFactory* job_factory) { | |
| 354 CookieManager::GetInstance()->SetCookieMonster(context); | 352 CookieManager::GetInstance()->SetCookieMonster(context); |
| 355 } | 353 } |
| 356 | 354 |
| 357 bool RegisterCookieManager(JNIEnv* env) { | 355 bool RegisterCookieManager(JNIEnv* env) { |
| 358 return RegisterNativesImpl(env); | 356 return RegisterNativesImpl(env); |
| 359 } | 357 } |
| 360 | 358 |
| 361 } // android_webview namespace | 359 } // android_webview namespace |
| OLD | NEW |