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