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

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

Issue 147533004: Remove unneeded JNI registrations. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Fix android webview build issues. Created 6 years, 8 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
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"
6
7 #include "android_webview/browser/aw_browser_context.h" 5 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_cookie_access_policy.h" 6 #include "android_webview/browser/aw_cookie_access_policy.h"
9 #include "android_webview/browser/net/init_native_callback.h" 7 #include "android_webview/browser/net/init_native_callback.h"
10 #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"
11 #include "android_webview/native/aw_browser_dependency_factory.h" 9 #include "android_webview/native/aw_browser_dependency_factory.h"
12 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
13 #include "base/android/path_utils.h" 11 #include "base/android/path_utils.h"
14 #include "base/bind.h" 12 #include "base/bind.h"
15 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
16 #include "base/file_util.h" 14 #include "base/file_util.h"
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 jboolean accept) { 488 jboolean accept) {
491 return CookieManager::GetInstance()->SetAcceptFileSchemeCookies(accept); 489 return CookieManager::GetInstance()->SetAcceptFileSchemeCookies(accept);
492 } 490 }
493 491
494 scoped_refptr<net::CookieStore> CreateCookieStore( 492 scoped_refptr<net::CookieStore> CreateCookieStore(
495 AwBrowserContext* browser_context) { 493 AwBrowserContext* browser_context) {
496 return CookieManager::GetInstance()->CreateBrowserThreadCookieStore( 494 return CookieManager::GetInstance()->CreateBrowserThreadCookieStore(
497 browser_context); 495 browser_context);
498 } 496 }
499 497
500 bool RegisterCookieManager(JNIEnv* env) {
501 return RegisterNativesImpl(env);
502 }
503
504 } // android_webview namespace 498 } // android_webview namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698