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
3 // found in the LICENSE file.
5 #include "android_webview/native/android_webview_jni_registrar.h"
7 #include "android_webview/native/android_web_view_util.h"
8 #include "android_webview/native/aw_contents.h"
9 #include "android_webview/native/cookie_manager.h"
10 #include "base/android/jni_android.h"
11 #include "base/android/jni_registrar.h"
12 #include "chrome/browser/component/web_contents_delegate_android/component_jni_registrar.h"
14 namespace android_webview
{
16 static base::android::RegistrationMethod kWebViewRegisteredMethods
[] = {
17 { "AndroidWebViewUtil", RegisterAndroidWebViewUtil
},
18 { "AwContents", RegisterAwContents
},
19 { "CookieManager", RegisterCookieManager
},
22 bool RegisterJni(JNIEnv
* env
) {
23 if (!web_contents_delegate_android::RegisterJni(env
))
26 return RegisterNativeMethods(env
,
27 kWebViewRegisteredMethods
, arraysize(kWebViewRegisteredMethods
));
30 } // namespace android_webview