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 "content/browser/android/browser_jni_registrar.h" | 5 #include "content/browser/android/browser_jni_registrar.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_registrar.h" | 8 #include "base/android/jni_registrar.h" |
9 #include "content/browser/android/android_browser_process.h" | 9 #include "content/browser/android/android_browser_process.h" |
10 #include "content/browser/android/content_settings.h" | 10 #include "content/browser/android/content_settings.h" |
11 #include "content/browser/android/content_video_view.h" | 11 #include "content/browser/android/content_video_view.h" |
12 #include "content/browser/android/content_view_client.h" | 12 #include "content/browser/android/content_view_client.h" |
13 #include "content/browser/android/content_view_core_impl.h" | 13 #include "content/browser/android/content_view_core_impl.h" |
14 #include "content/browser/android/content_view_statics.h" | 14 #include "content/browser/android/content_view_statics.h" |
15 #include "content/browser/android/download_controller.h" | 15 #include "content/browser/android/download_controller.h" |
16 #include "content/browser/android/sandboxed_process_launcher.h" | 16 #include "content/browser/android/sandboxed_process_launcher.h" |
17 #include "content/browser/android/touch_point.h" | 17 #include "content/browser/android/touch_point.h" |
18 #include "content/browser/geolocation/location_api_adapter_android.h" | 18 #include "content/browser/geolocation/location_api_adapter_android.h" |
19 #include "content/browser/renderer_host/java/java_bound_object.h" | 19 #include "content/browser/renderer_host/java/java_bound_object.h" |
20 #include "content/common/android/device_info.h" | |
21 | 20 |
22 namespace { | 21 namespace { |
23 base::android::RegistrationMethod kContentRegisteredMethods[] = { | 22 base::android::RegistrationMethod kContentRegisteredMethods[] = { |
24 { "AndroidLocationApiAdapter", | 23 { "AndroidLocationApiAdapter", |
25 AndroidLocationApiAdapter::RegisterGeolocationService }, | 24 AndroidLocationApiAdapter::RegisterGeolocationService }, |
26 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess }, | 25 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess }, |
27 { "ContentSettings", content::ContentSettings::RegisterContentSettings }, | 26 { "ContentSettings", content::ContentSettings::RegisterContentSettings }, |
28 { "ContentVideoView", content::ContentVideoView::RegisterContentVideoView }, | 27 { "ContentVideoView", content::ContentVideoView::RegisterContentVideoView }, |
29 { "ContentViewClient", content::RegisterContentViewClient }, | 28 { "ContentViewClient", content::RegisterContentViewClient }, |
30 { "ContentViewCore", content::RegisterContentViewCore }, | 29 { "ContentViewCore", content::RegisterContentViewCore }, |
31 { "DeviceInfo", content::RegisterDeviceInfo }, | |
32 { "DownloadController", | 30 { "DownloadController", |
33 content::DownloadController::RegisterDownloadController }, | 31 content::DownloadController::RegisterDownloadController }, |
34 { "JavaBoundObject", JavaBoundObject::RegisterJavaBoundObject }, | 32 { "JavaBoundObject", JavaBoundObject::RegisterJavaBoundObject }, |
35 { "SandboxedProcessLauncher", content::RegisterSandboxedProcessLauncher }, | 33 { "SandboxedProcessLauncher", content::RegisterSandboxedProcessLauncher }, |
36 { "TouchPoint", content::RegisterTouchPoint }, | 34 { "TouchPoint", content::RegisterTouchPoint }, |
37 { "WebViewStatics", content::RegisterWebViewStatics }, | 35 { "WebViewStatics", content::RegisterWebViewStatics }, |
38 }; | 36 }; |
39 | 37 |
40 } // namespace | 38 } // namespace |
41 | 39 |
42 namespace content { | 40 namespace content { |
43 namespace android { | 41 namespace android { |
44 | 42 |
45 bool RegisterBrowserJni(JNIEnv* env) { | 43 bool RegisterBrowserJni(JNIEnv* env) { |
46 return RegisterNativeMethods(env, kContentRegisteredMethods, | 44 return RegisterNativeMethods(env, kContentRegisteredMethods, |
47 arraysize(kContentRegisteredMethods)); | 45 arraysize(kContentRegisteredMethods)); |
48 } | 46 } |
49 | 47 |
50 } // namespace android | 48 } // namespace android |
51 } // namespace content | 49 } // namespace content |
OLD | NEW |