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

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

Issue 2202783002: android_webview: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: android_webview: Remove unneeded RegisterNatives() calls Created 4 years, 4 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_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_background_thread_client.h"
11 #include "android_webview/native/aw_contents_client_bridge.h" 10 #include "android_webview/native/aw_contents_client_bridge.h"
12 #include "android_webview/native/aw_contents_io_thread_client_impl.h"
13 #include "android_webview/native/aw_contents_lifecycle_notifier.h"
14 #include "android_webview/native/aw_contents_statics.h" 11 #include "android_webview/native/aw_contents_statics.h"
15 #include "android_webview/native/aw_debug.h" 12 #include "android_webview/native/aw_debug.h"
16 #include "android_webview/native/aw_dev_tools_server.h" 13 #include "android_webview/native/aw_dev_tools_server.h"
17 #include "android_webview/native/aw_form_database.h" 14 #include "android_webview/native/aw_form_database.h"
18 #include "android_webview/native/aw_gl_functor.h" 15 #include "android_webview/native/aw_gl_functor.h"
19 #include "android_webview/native/aw_http_auth_handler.h" 16 #include "android_webview/native/aw_http_auth_handler.h"
20 #include "android_webview/native/aw_message_port_service_impl.h" 17 #include "android_webview/native/aw_message_port_service_impl.h"
21 #include "android_webview/native/aw_metrics_switch.h" 18 #include "android_webview/native/aw_metrics_switch.h"
22 #include "android_webview/native/aw_pdf_exporter.h" 19 #include "android_webview/native/aw_pdf_exporter.h"
23 #include "android_webview/native/aw_picture.h" 20 #include "android_webview/native/aw_picture.h"
24 #include "android_webview/native/aw_quota_manager_bridge_impl.h" 21 #include "android_webview/native/aw_quota_manager_bridge_impl.h"
25 #include "android_webview/native/aw_resource.h"
26 #include "android_webview/native/aw_settings.h" 22 #include "android_webview/native/aw_settings.h"
27 #include "android_webview/native/aw_web_contents_delegate.h" 23 #include "android_webview/native/aw_web_contents_delegate.h"
28 #include "android_webview/native/aw_web_resource_response_impl.h"
29 #include "android_webview/native/cookie_manager.h" 24 #include "android_webview/native/cookie_manager.h"
30 #include "android_webview/native/input_stream_impl.h"
31 #include "android_webview/native/java_browser_view_renderer_helper.h"
32 #include "android_webview/native/permission/aw_permission_request.h" 25 #include "android_webview/native/permission/aw_permission_request.h"
33 #include "base/android/jni_android.h" 26 #include "base/android/jni_android.h"
34 #include "base/android/jni_registrar.h" 27 #include "base/android/jni_registrar.h"
35 #include "base/trace_event/trace_event.h" 28 #include "base/trace_event/trace_event.h"
36 29
37 namespace android_webview { 30 namespace android_webview {
38 31
39 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = { 32 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = {
40 // Register JNI for android_webview classes. 33 // Register JNI for android_webview classes.
41 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler }, 34 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler },
42 { "AwAutofillClient", RegisterAwAutofillClient }, 35 { "AwAutofillClient", RegisterAwAutofillClient },
43 { "AwContents", RegisterAwContents }, 36 { "AwContents", RegisterAwContents },
44 { "AwContentsBackgroundThreadClient",
45 RegisterAwContentsBackgroundThreadClient },
46 { "AwContentsClientBridge", RegisterAwContentsClientBridge }, 37 { "AwContentsClientBridge", RegisterAwContentsClientBridge },
47 { "AwContentsIoThreadClientImpl", RegisterAwContentsIoThreadClientImpl },
48 { "AwContentsStatics", RegisterAwContentsStatics }, 38 { "AwContentsStatics", RegisterAwContentsStatics },
49 { "AwDebug", RegisterAwDebug }, 39 { "AwDebug", RegisterAwDebug },
50 { "AwDevToolsServer", RegisterAwDevToolsServer }, 40 { "AwDevToolsServer", RegisterAwDevToolsServer },
51 { "AwFormDatabase", RegisterAwFormDatabase }, 41 { "AwFormDatabase", RegisterAwFormDatabase },
52 { "AwPicture", RegisterAwPicture }, 42 { "AwPicture", RegisterAwPicture },
53 { "AwSettings", RegisterAwSettings }, 43 { "AwSettings", RegisterAwSettings },
54 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler }, 44 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler },
55 { "AwMetricsServiceClient", RegisterAwMetricsServiceClient }, 45 { "AwMetricsServiceClient", RegisterAwMetricsServiceClient },
56 { "AwPdfExporter", RegisterAwPdfExporter }, 46 { "AwPdfExporter", RegisterAwPdfExporter },
57 { "AwPermissionRequest", RegisterAwPermissionRequest }, 47 { "AwPermissionRequest", RegisterAwPermissionRequest },
58 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge }, 48 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge },
59 { "AwResource", AwResource::RegisterAwResource },
60 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate }, 49 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate },
61 { "CookieManager", RegisterCookieManager }, 50 { "CookieManager", RegisterCookieManager },
62 { "AwWebResourceResponseImpl", RegisterAwWebResourceResponse },
63 { "InputStream", RegisterInputStream },
64 { "JavaBrowserViewRendererHelper", RegisterJavaBrowserViewRendererHelper },
65 { "AwMessagePortService", RegisterAwMessagePortService }, 51 { "AwMessagePortService", RegisterAwMessagePortService },
66 { "AwContentsLifecycleNotifier", RegisterAwContentsLifecycleNotifier },
67 { "AwGLFunctor", RegisterAwGLFunctor }, 52 { "AwGLFunctor", RegisterAwGLFunctor },
68 }; 53 };
69 54
70 bool RegisterJni(JNIEnv* env) { 55 bool RegisterJni(JNIEnv* env) {
71 TRACE_EVENT0("startup", "android_webview::RegisterJni"); 56 TRACE_EVENT0("startup", "android_webview::RegisterJni");
72 return RegisterNativeMethods(env, 57 return RegisterNativeMethods(env,
73 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods)); 58 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods));
74 } 59 }
75 60
76 } // namespace android_webview 61 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/BUILD.gn ('k') | android_webview/native/aw_contents_background_thread_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698