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