ProfileManager doesn't depend on "--login-profile" switch.
[chromium-blink-merge.git] / android_webview / native / android_webview_jni_registrar.cc
blob253a070119851f5884bc76a3c0b3cc9bb366b457
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_assets.h"
9 #include "android_webview/native/aw_autofill_client.h"
10 #include "android_webview/native/aw_contents.h"
11 #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_statics.h"
14 #include "android_webview/native/aw_dev_tools_server.h"
15 #include "android_webview/native/aw_form_database.h"
16 #include "android_webview/native/aw_http_auth_handler.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/external_video_surface_container_impl.h"
26 #include "android_webview/native/input_stream_impl.h"
27 #include "android_webview/native/java_browser_view_renderer_helper.h"
28 #include "android_webview/native/permission/aw_permission_request.h"
29 #include "base/android/jni_android.h"
30 #include "base/android/jni_registrar.h"
31 #include "base/debug/trace_event.h"
33 namespace android_webview {
35 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = {
36 // Register JNI for android_webview classes.
37 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler },
38 { "AwAutofillClient", RegisterAwAutofillClient },
39 { "AwAssets", RegisterAwAssets },
40 { "AwContents", RegisterAwContents },
41 { "AwContentsClientBridge", RegisterAwContentsClientBridge },
42 { "AwContentsIoThreadClientImpl", RegisterAwContentsIoThreadClientImpl },
43 { "AwContentsStatics", RegisterAwContentsStatics },
44 { "AwDevToolsServer", RegisterAwDevToolsServer },
45 { "AwFormDatabase", RegisterAwFormDatabase },
46 { "AwPicture", RegisterAwPicture },
47 { "AwSettings", RegisterAwSettings },
48 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler },
49 { "AwPdfExporter", RegisterAwPdfExporter },
50 { "AwPermissionRequest", RegisterAwPermissionRequest },
51 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge },
52 { "AwResource", AwResource::RegisterAwResource },
53 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate },
54 { "CookieManager", RegisterCookieManager },
55 #if defined(VIDEO_HOLE)
56 { "ExternalVideoSurfaceContainer", RegisterExternalVideoSurfaceContainer },
57 #endif
58 { "AwWebResourceResponseImpl", RegisterAwWebResourceResponse },
59 { "InputStream", RegisterInputStream },
60 { "JavaBrowserViewRendererHelper", RegisterJavaBrowserViewRendererHelper },
63 bool RegisterJni(JNIEnv* env) {
64 TRACE_EVENT0("startup", "android_webview::RegisterJni");
65 return RegisterNativeMethods(env,
66 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods));
69 } // namespace android_webview