| 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 "base/android/base_jni_registrar.h" | 5 #include "base/android/base_jni_registrar.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/android/build_info.h" | 8 #include "base/android/build_info.h" |
| 9 #include "base/android/cpu_features.h" | 9 #include "base/android/cpu_features.h" |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| 11 #include "base/android/jni_map.h" |
| 11 #include "base/android/jni_registrar.h" | 12 #include "base/android/jni_registrar.h" |
| 12 #include "base/android/locale_utils.h" | 13 #include "base/android/locale_utils.h" |
| 13 #include "base/android/path_service_android.h" | 14 #include "base/android/path_service_android.h" |
| 14 #include "base/android/path_utils.h" | 15 #include "base/android/path_utils.h" |
| 15 #include "base/android/thread_utils.h" | 16 #include "base/android/thread_utils.h" |
| 16 #include "base/message_pump_android.h" | 17 #include "base/message_pump_android.h" |
| 17 #include "base/system_monitor/system_monitor_android.h" | 18 #include "base/system_monitor/system_monitor_android.h" |
| 18 | 19 |
| 19 namespace base { | 20 namespace base { |
| 20 namespace android { | 21 namespace android { |
| 21 | 22 |
| 22 static RegistrationMethod kBaseRegisteredMethods[] = { | 23 static RegistrationMethod kBaseRegisteredMethods[] = { |
| 23 { "BuildInfo", base::android::BuildInfo::RegisterBindings }, | 24 { "BuildInfo", base::android::BuildInfo::RegisterBindings }, |
| 24 { "CpuFeatures", base::android::RegisterCpuFeatures }, | 25 { "CpuFeatures", base::android::RegisterCpuFeatures }, |
| 25 { "LocaleUtils", base::android::RegisterLocaleUtils }, | 26 { "LocaleUtils", base::android::RegisterLocaleUtils }, |
| 27 { "Map", base::android::RegisterMap }, |
| 26 { "PathService", base::android::RegisterPathService }, | 28 { "PathService", base::android::RegisterPathService }, |
| 27 { "PathUtils", base::android::RegisterPathUtils }, | 29 { "PathUtils", base::android::RegisterPathUtils }, |
| 28 { "SystemMessageHandler", base::MessagePumpForUI::RegisterBindings }, | 30 { "SystemMessageHandler", base::MessagePumpForUI::RegisterBindings }, |
| 29 { "SystemMonitor", base::RegisterSystemMonitor }, | 31 { "SystemMonitor", base::RegisterSystemMonitor }, |
| 30 { "ThreadUtils", base::RegisterThreadUtils }, | 32 { "ThreadUtils", base::RegisterThreadUtils }, |
| 31 }; | 33 }; |
| 32 | 34 |
| 33 bool RegisterJni(JNIEnv* env) { | 35 bool RegisterJni(JNIEnv* env) { |
| 34 return RegisterNativeMethods(env, kBaseRegisteredMethods, | 36 return RegisterNativeMethods(env, kBaseRegisteredMethods, |
| 35 arraysize(kBaseRegisteredMethods)); | 37 arraysize(kBaseRegisteredMethods)); |
| 36 } | 38 } |
| 37 | 39 |
| 38 } // namespace android | 40 } // namespace android |
| 39 } // namespace base | 41 } // namespace base |
| OLD | NEW |