| OLD | NEW |
| 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_protocol_handler.h" | 7 #include "android_webview/native/android_protocol_handler.h" |
| 8 #include "android_webview/native/aw_autofill_manager_delegate.h" |
| 8 #include "android_webview/native/aw_contents.h" | 9 #include "android_webview/native/aw_contents.h" |
| 9 #include "android_webview/native/aw_contents_client_bridge.h" | 10 #include "android_webview/native/aw_contents_client_bridge.h" |
| 10 #include "android_webview/native/aw_contents_io_thread_client_impl.h" | 11 #include "android_webview/native/aw_contents_io_thread_client_impl.h" |
| 11 #include "android_webview/native/aw_form_database.h" | 12 #include "android_webview/native/aw_form_database.h" |
| 12 #include "android_webview/native/aw_http_auth_handler.h" | 13 #include "android_webview/native/aw_http_auth_handler.h" |
| 13 #include "android_webview/native/aw_quota_manager_bridge_impl.h" | 14 #include "android_webview/native/aw_quota_manager_bridge_impl.h" |
| 14 #include "android_webview/native/aw_resource.h" | 15 #include "android_webview/native/aw_resource.h" |
| 15 #include "android_webview/native/aw_settings.h" | 16 #include "android_webview/native/aw_settings.h" |
| 16 #include "android_webview/native/aw_web_contents_delegate.h" | 17 #include "android_webview/native/aw_web_contents_delegate.h" |
| 17 #include "android_webview/native/cookie_manager.h" | 18 #include "android_webview/native/cookie_manager.h" |
| 18 #include "android_webview/native/input_stream_impl.h" | 19 #include "android_webview/native/input_stream_impl.h" |
| 19 #include "android_webview/native/intercepted_request_data_impl.h" | 20 #include "android_webview/native/intercepted_request_data_impl.h" |
| 20 #include "android_webview/native/java_browser_view_renderer_helper.h" | 21 #include "android_webview/native/java_browser_view_renderer_helper.h" |
| 21 #include "base/android/jni_android.h" | 22 #include "base/android/jni_android.h" |
| 22 #include "base/android/jni_registrar.h" | 23 #include "base/android/jni_registrar.h" |
| 23 #include "base/debug/trace_event.h" | 24 #include "base/debug/trace_event.h" |
| 24 | 25 |
| 25 namespace android_webview { | 26 namespace android_webview { |
| 26 | 27 |
| 27 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = { | 28 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = { |
| 28 // Register JNI for android_webview classes. | 29 // Register JNI for android_webview classes. |
| 29 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler }, | 30 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler }, |
| 31 { "AwAutofillManagerDelegate", RegisterAwAutofillManagerDelegate }, |
| 30 { "AwContents", RegisterAwContents }, | 32 { "AwContents", RegisterAwContents }, |
| 31 { "AwContentsClientBridge", RegisterAwContentsClientBridge }, | 33 { "AwContentsClientBridge", RegisterAwContentsClientBridge }, |
| 32 { "AwContentsIoThreadClientImpl", RegisterAwContentsIoThreadClientImpl}, | 34 { "AwContentsIoThreadClientImpl", RegisterAwContentsIoThreadClientImpl}, |
| 33 { "AwFormDatabase", RegisterAwFormDatabase}, | 35 { "AwFormDatabase", RegisterAwFormDatabase}, |
| 34 { "AwSettings", RegisterAwSettings }, | 36 { "AwSettings", RegisterAwSettings }, |
| 35 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler }, | 37 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler }, |
| 36 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge }, | 38 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge }, |
| 37 { "AwResource", AwResource::RegisterAwResource }, | 39 { "AwResource", AwResource::RegisterAwResource }, |
| 38 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate }, | 40 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate }, |
| 39 { "CookieManager", RegisterCookieManager }, | 41 { "CookieManager", RegisterCookieManager }, |
| 40 { "InterceptedRequestDataImpl", RegisterInterceptedRequestData }, | 42 { "InterceptedRequestDataImpl", RegisterInterceptedRequestData }, |
| 41 { "InputStream", RegisterInputStream }, | 43 { "InputStream", RegisterInputStream }, |
| 42 { "JavaBrowserViewRendererHelper", RegisterJavaBrowserViewRendererHelper }, | 44 { "JavaBrowserViewRendererHelper", RegisterJavaBrowserViewRendererHelper }, |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 bool RegisterJni(JNIEnv* env) { | 47 bool RegisterJni(JNIEnv* env) { |
| 46 TRACE_EVENT0("startup", "android_webview::RegisterJni"); | 48 TRACE_EVENT0("startup", "android_webview::RegisterJni"); |
| 47 return RegisterNativeMethods(env, | 49 return RegisterNativeMethods(env, |
| 48 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods)); | 50 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods)); |
| 49 } | 51 } |
| 50 | 52 |
| 51 } // namespace android_webview | 53 } // namespace android_webview |
| OLD | NEW |