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

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

Issue 10913074: Add WebView implementation for CookieManager. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/android_webview_jni_registrar.h" 5 #include "android_webview/native/android_webview_jni_registrar.h"
6 6
7 #include "android_webview/native/android_web_view_util.h" 7 #include "android_webview/native/android_web_view_util.h"
8 #include "android_webview/native/aw_contents.h" 8 #include "android_webview/native/aw_contents.h"
9 #include "android_webview/native/cookie_manager.h"
9 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
10 #include "base/android/jni_registrar.h" 11 #include "base/android/jni_registrar.h"
11 #include "chrome/browser/component/web_contents_delegate_android/component_jni_r egistrar.h" 12 #include "chrome/browser/component/web_contents_delegate_android/component_jni_r egistrar.h"
12 13
13 namespace android_webview { 14 namespace android_webview {
14 15
15 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = { 16 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = {
16 { "AndroidWebViewUtil", RegisterAndroidWebViewUtil }, 17 { "AndroidWebViewUtil", RegisterAndroidWebViewUtil },
17 { "AwContents", RegisterAwContents }, 18 { "AwContents", RegisterAwContents },
19 { "CookieManager", RegisterCookieManager },
18 }; 20 };
19 21
20 bool RegisterJni(JNIEnv* env) { 22 bool RegisterJni(JNIEnv* env) {
21 if (!web_contents_delegate_android::RegisterJni(env)) 23 if (!web_contents_delegate_android::RegisterJni(env))
22 return false; 24 return false;
23 25
24 return RegisterNativeMethods(env, 26 return RegisterNativeMethods(env,
25 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods)); 27 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods));
26 } 28 }
27 29
28 } // namespace android_webview 30 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/lib/aw_content_browser_client.cc ('k') | android_webview/native/aw_browser_dependency_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698