| 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/app/android/content_jni_registrar.h" | 5 #include "content/browser/android/content_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/app/android/content_main.h" | |
| 10 #include "content/app/android/sandboxed_process_service.h" | |
| 11 #include "content/app/android/user_agent.h" | |
| 12 #include "content/browser/android/android_browser_process.h" | 9 #include "content/browser/android/android_browser_process.h" |
| 13 #include "content/browser/android/content_settings.h" | 10 #include "content/browser/android/content_settings.h" |
| 14 #include "content/browser/android/content_view_client.h" | 11 #include "content/browser/android/content_view_client.h" |
| 15 #include "content/browser/android/content_view_impl.h" | 12 #include "content/browser/android/content_view_impl.h" |
| 16 #include "content/browser/android/device_info.h" | 13 #include "content/browser/android/device_info.h" |
| 17 #include "content/browser/android/download_controller.h" | 14 #include "content/browser/android/download_controller.h" |
| 18 #include "content/browser/android/sandboxed_process_launcher.h" | 15 #include "content/browser/android/sandboxed_process_launcher.h" |
| 19 #include "content/browser/android/touch_point.h" | 16 #include "content/browser/android/touch_point.h" |
| 20 #include "content/common/android/command_line.h" | 17 |
| 21 #include "content/common/android/surface_callback.h" | 18 namespace { |
| 22 #include "content/common/android/trace_event_binding.h" | 19 base::android::RegistrationMethod kContentRegisteredMethods[] = { |
| 20 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess }, |
| 21 { "ContentSettings", content::ContentSettings::RegisterContentSettings }, |
| 22 { "ContentView", content::RegisterContentView }, |
| 23 { "ContentViewClient", content::RegisterContentViewClient }, |
| 24 { "DeviceInfo", content::RegisterDeviceInfo }, |
| 25 { "DownloadController", content::DownloadController::RegisterDownloadControlle
r }, |
| 26 { "SandboxedProcessLauncher", content::RegisterSandboxedProcessLauncher }, |
| 27 { "TouchPoint", content::RegisterTouchPoint }, |
| 28 }; |
| 29 |
| 30 } // namespace |
| 23 | 31 |
| 24 namespace content { | 32 namespace content { |
| 25 namespace android { | 33 namespace android { |
| 26 | 34 |
| 27 base::android::RegistrationMethod kContentRegisteredMethods[] = { | 35 bool RegisterContentBrowserJni(JNIEnv* env) { |
| 28 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess }, | |
| 29 { "CommandLine", RegisterCommandLine }, | |
| 30 { "ContentSettings", ContentSettings::RegisterContentSettings }, | |
| 31 { "ContentView", RegisterContentView }, | |
| 32 { "ContentViewClient", RegisterContentViewClient }, | |
| 33 { "ContentMain", content::RegisterContentMain }, | |
| 34 { "DeviceInfo", RegisterDeviceInfo }, | |
| 35 { "DownloadController", DownloadController::RegisterDownloadController }, | |
| 36 { "SandboxedProcessLauncher", content::RegisterSandboxedProcessLauncher }, | |
| 37 { "SandboxedProcessService", content::RegisterSandboxedProcessService }, | |
| 38 { "SurfaceCallback", content::RegisterSurfaceCallback }, | |
| 39 { "TouchPoint", content::RegisterTouchPoint }, | |
| 40 { "TraceEvent", RegisterTraceEvent }, | |
| 41 { "UserAgent", content::RegisterUserAgent }, | |
| 42 }; | |
| 43 | |
| 44 bool RegisterJni(JNIEnv* env) { | |
| 45 return RegisterNativeMethods(env, kContentRegisteredMethods, | 36 return RegisterNativeMethods(env, kContentRegisteredMethods, |
| 46 arraysize(kContentRegisteredMethods)); | 37 arraysize(kContentRegisteredMethods)); |
| 47 } | 38 } |
| 48 | 39 |
| 49 } // namespace android | 40 } // namespace android |
| 50 } // namespace content | 41 } // namespace content |
| OLD | NEW |