Fix CryptAuth enrollment logic.
[chromium-blink-merge.git] / android_webview / native / android_webview_jni_registrar.cc
blob30a8919efbc7d0eb0e38e4415fd75bcad3b65ec4
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_protocol_handler.h"
8 #include "android_webview/native/aw_autofill_client.h"
9 #include "android_webview/native/aw_contents.h"
10 #include "android_webview/native/aw_contents_client_bridge.h"
11 #include "android_webview/native/aw_contents_io_thread_client_impl.h"
12 #include "android_webview/native/aw_contents_statics.h"
13 #include "android_webview/native/aw_dev_tools_server.h"
14 #include "android_webview/native/aw_form_database.h"
15 #include "android_webview/native/aw_http_auth_handler.h"
16 #include "android_webview/native/aw_message_port_service_impl.h"
17 #include "android_webview/native/aw_pdf_exporter.h"
18 #include "android_webview/native/aw_picture.h"
19 #include "android_webview/native/aw_quota_manager_bridge_impl.h"
20 #include "android_webview/native/aw_resource.h"
21 #include "android_webview/native/aw_settings.h"
22 #include "android_webview/native/aw_web_contents_delegate.h"
23 #include "android_webview/native/aw_web_resource_response_impl.h"
24 #include "android_webview/native/cookie_manager.h"
25 #include "android_webview/native/input_stream_impl.h"
26 #include "android_webview/native/java_browser_view_renderer_helper.h"
27 #include "android_webview/native/permission/aw_permission_request.h"
28 #include "base/android/jni_android.h"
29 #include "base/android/jni_registrar.h"
30 #include "base/trace_event/trace_event.h"
32 namespace android_webview {
34 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = {
35 // Register JNI for android_webview classes.
36 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler },
37 { "AwAutofillClient", RegisterAwAutofillClient },
38 { "AwContents", RegisterAwContents },
39 { "AwContentsClientBridge", RegisterAwContentsClientBridge },
40 { "AwContentsIoThreadClientImpl", RegisterAwContentsIoThreadClientImpl },
41 { "AwContentsStatics", RegisterAwContentsStatics },
42 { "AwDevToolsServer", RegisterAwDevToolsServer },
43 { "AwFormDatabase", RegisterAwFormDatabase },
44 { "AwPicture", RegisterAwPicture },
45 { "AwSettings", RegisterAwSettings },
46 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler },
47 { "AwPdfExporter", RegisterAwPdfExporter },
48 { "AwPermissionRequest", RegisterAwPermissionRequest },
49 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge },
50 { "AwResource", AwResource::RegisterAwResource },
51 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate },
52 { "CookieManager", RegisterCookieManager },
53 { "AwWebResourceResponseImpl", RegisterAwWebResourceResponse },
54 { "InputStream", RegisterInputStream },
55 { "JavaBrowserViewRendererHelper", RegisterJavaBrowserViewRendererHelper },
56 { "AwMessagePortService", RegisterAwMessagePortService },
59 bool RegisterJni(JNIEnv* env) {
60 TRACE_EVENT0("startup", "android_webview::RegisterJni");
61 return RegisterNativeMethods(env,
62 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods));
65 } // namespace android_webview