| 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_client.h" | 8 #include "android_webview/native/aw_autofill_client.h" |
| 9 #include "android_webview/native/aw_contents.h" | 9 #include "android_webview/native/aw_contents.h" |
| 10 #include "android_webview/native/aw_contents_client_bridge.h" | 10 #include "android_webview/native/aw_contents_client_bridge.h" |
| 11 #include "android_webview/native/aw_contents_statics.h" | 11 #include "android_webview/native/aw_contents_statics.h" |
| 12 #include "android_webview/native/aw_debug.h" | 12 #include "android_webview/native/aw_debug.h" |
| 13 #include "android_webview/native/aw_devtools_server.h" | 13 #include "android_webview/native/aw_devtools_server.h" |
| 14 #include "android_webview/native/aw_form_database.h" | 14 #include "android_webview/native/aw_form_database.h" |
| 15 #include "android_webview/native/aw_gl_functor.h" | 15 #include "android_webview/native/aw_gl_functor.h" |
| 16 #include "android_webview/native/aw_http_auth_handler.h" | 16 #include "android_webview/native/aw_http_auth_handler.h" |
| 17 #include "android_webview/native/aw_metrics_log_uploader.h" |
| 17 #include "android_webview/native/aw_metrics_service_client_impl.h" | 18 #include "android_webview/native/aw_metrics_service_client_impl.h" |
| 18 #include "android_webview/native/aw_pdf_exporter.h" | 19 #include "android_webview/native/aw_pdf_exporter.h" |
| 19 #include "android_webview/native/aw_picture.h" | 20 #include "android_webview/native/aw_picture.h" |
| 20 #include "android_webview/native/aw_quota_manager_bridge_impl.h" | 21 #include "android_webview/native/aw_quota_manager_bridge_impl.h" |
| 21 #include "android_webview/native/aw_settings.h" | 22 #include "android_webview/native/aw_settings.h" |
| 22 #include "android_webview/native/aw_web_contents_delegate.h" | 23 #include "android_webview/native/aw_web_contents_delegate.h" |
| 23 #include "android_webview/native/cookie_manager.h" | 24 #include "android_webview/native/cookie_manager.h" |
| 24 #include "android_webview/native/permission/aw_permission_request.h" | 25 #include "android_webview/native/permission/aw_permission_request.h" |
| 25 #include "base/android/jni_android.h" | 26 #include "base/android/jni_android.h" |
| 26 #include "base/android/jni_registrar.h" | 27 #include "base/android/jni_registrar.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 39 { "AwAutofillClient", RegisterAwAutofillClient }, | 40 { "AwAutofillClient", RegisterAwAutofillClient }, |
| 40 { "AwContents", RegisterAwContents }, | 41 { "AwContents", RegisterAwContents }, |
| 41 { "AwContentsClientBridge", RegisterAwContentsClientBridge }, | 42 { "AwContentsClientBridge", RegisterAwContentsClientBridge }, |
| 42 { "AwContentsStatics", RegisterAwContentsStatics }, | 43 { "AwContentsStatics", RegisterAwContentsStatics }, |
| 43 { "AwDebug", RegisterAwDebug }, | 44 { "AwDebug", RegisterAwDebug }, |
| 44 { "AwDevToolsServer", RegisterAwDevToolsServer }, | 45 { "AwDevToolsServer", RegisterAwDevToolsServer }, |
| 45 { "AwFormDatabase", RegisterAwFormDatabase }, | 46 { "AwFormDatabase", RegisterAwFormDatabase }, |
| 46 { "AwPicture", RegisterAwPicture }, | 47 { "AwPicture", RegisterAwPicture }, |
| 47 { "AwSettings", RegisterAwSettings }, | 48 { "AwSettings", RegisterAwSettings }, |
| 48 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler }, | 49 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler }, |
| 50 { "AwMetricsLogUploader", RegisterAwMetricsLogUploader }, |
| 49 { "AwMetricsServiceClient", RegisterAwMetricsServiceClient }, | 51 { "AwMetricsServiceClient", RegisterAwMetricsServiceClient }, |
| 50 { "AwPdfExporter", RegisterAwPdfExporter }, | 52 { "AwPdfExporter", RegisterAwPdfExporter }, |
| 51 { "AwPermissionRequest", RegisterAwPermissionRequest }, | 53 { "AwPermissionRequest", RegisterAwPermissionRequest }, |
| 52 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge }, | 54 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge }, |
| 53 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate }, | 55 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate }, |
| 54 { "CookieManager", RegisterCookieManager }, | 56 { "CookieManager", RegisterCookieManager }, |
| 55 { "AwGLFunctor", RegisterAwGLFunctor }, | 57 { "AwGLFunctor", RegisterAwGLFunctor }, |
| 56 #if BUILDFLAG(ENABLE_SPELLCHECK) | 58 #if BUILDFLAG(ENABLE_SPELLCHECK) |
| 57 {"SpellCheckerSessionBridge", spellcheck::android::RegisterSpellcheckJni}, | 59 {"SpellCheckerSessionBridge", spellcheck::android::RegisterSpellcheckJni}, |
| 58 #endif | 60 #endif |
| 59 }; | 61 }; |
| 60 | 62 |
| 61 bool RegisterJni(JNIEnv* env) { | 63 bool RegisterJni(JNIEnv* env) { |
| 62 TRACE_EVENT0("startup", "android_webview::RegisterJni"); | 64 TRACE_EVENT0("startup", "android_webview::RegisterJni"); |
| 63 return RegisterNativeMethods(env, | 65 return RegisterNativeMethods(env, |
| 64 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods)); | 66 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods)); |
| 65 } | 67 } |
| 66 | 68 |
| 67 } // namespace android_webview | 69 } // namespace android_webview |
| OLD | NEW |