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

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: Address erikwright's third round of comments 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 static jboolean AllowFileSchemeCookies(JNIEnv* env, jclass obj) { 318 static jboolean AllowFileSchemeCookies(JNIEnv* env, jclass obj) {
319 return CookieManager::GetInstance()->AllowFileSchemeCookies(); 319 return CookieManager::GetInstance()->AllowFileSchemeCookies();
320 } 320 }
321 321
322 static void SetAcceptFileSchemeCookies(JNIEnv* env, jclass obj, 322 static void SetAcceptFileSchemeCookies(JNIEnv* env, jclass obj,
323 jboolean accept) { 323 jboolean accept) {
324 return CookieManager::GetInstance()->SetAcceptFileSchemeCookies(accept); 324 return CookieManager::GetInstance()->SetAcceptFileSchemeCookies(accept);
325 } 325 }
326 326
327 void SetCookieMonsterOnNetworkStackInit( 327 void SetCookieMonsterOnNetworkStackInit(net::URLRequestContext* context) {
328 net::URLRequestContext* context,
329 net::URLRequestJobFactory* job_factory) {
330 CookieManager::GetInstance()->SetCookieMonster(context); 328 CookieManager::GetInstance()->SetCookieMonster(context);
331 } 329 }
332 330
333 bool RegisterCookieManager(JNIEnv* env) { 331 bool RegisterCookieManager(JNIEnv* env) {
334 return RegisterNativesImpl(env); 332 return RegisterNativesImpl(env);
335 } 333 }
336 334
337 } // android_webview namespace 335 } // android_webview namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698