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

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

Issue 11293252: Change Interceptors into URLRequestJobFactory::ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years 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 | Annotate | Revision Log
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 "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
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
OLDNEW
« no previous file with comments | « android_webview/native/cookie_manager.h ('k') | android_webview/native/net_init_native_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698