| 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/android/activity_status.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/important_file_writer_android.h" | 10 #include "base/android/important_file_writer_android.h" |
| 11 #include "base/android/jni_android.h" | 11 #include "base/android/jni_android.h" |
| 12 #include "base/android/jni_registrar.h" | 12 #include "base/android/jni_registrar.h" |
| 13 #include "base/android/path_service_android.h" | 13 #include "base/android/path_service_android.h" |
| 14 #include "base/android/path_utils.h" | 14 #include "base/android/path_utils.h" |
| 15 #include "base/android/thread_utils.h" | 15 #include "base/android/thread_utils.h" |
| 16 #include "base/basictypes.h" |
| 16 #include "base/debug/trace_event.h" | 17 #include "base/debug/trace_event.h" |
| 17 #include "base/message_pump_android.h" | 18 #include "base/message_pump_android.h" |
| 18 #include "base/power_monitor/power_monitor_android.h" | 19 #include "base/power_monitor/power_monitor_android.h" |
| 19 | 20 |
| 20 namespace base { | 21 namespace base { |
| 21 namespace android { | 22 namespace android { |
| 22 | 23 |
| 23 static RegistrationMethod kBaseRegisteredMethods[] = { | 24 static RegistrationMethod kBaseRegisteredMethods[] = { |
| 25 { "ActivityStatus", base::android::ActivityStatus::RegisterBindings }, |
| 24 { "BuildInfo", base::android::BuildInfo::RegisterBindings }, | 26 { "BuildInfo", base::android::BuildInfo::RegisterBindings }, |
| 25 { "CpuFeatures", base::android::RegisterCpuFeatures }, | 27 { "CpuFeatures", base::android::RegisterCpuFeatures }, |
| 26 { "ImportantFileWriterAndroid", | 28 { "ImportantFileWriterAndroid", |
| 27 base::android::RegisterImportantFileWriterAndroid }, | 29 base::android::RegisterImportantFileWriterAndroid }, |
| 28 { "PathService", base::android::RegisterPathService }, | 30 { "PathService", base::android::RegisterPathService }, |
| 29 { "PathUtils", base::android::RegisterPathUtils }, | 31 { "PathUtils", base::android::RegisterPathUtils }, |
| 30 { "SystemMessageHandler", base::MessagePumpForUI::RegisterBindings }, | 32 { "SystemMessageHandler", base::MessagePumpForUI::RegisterBindings }, |
| 31 { "PowerMonitor", base::RegisterPowerMonitor }, | 33 { "PowerMonitor", base::RegisterPowerMonitor }, |
| 32 { "ThreadUtils", base::RegisterThreadUtils }, | 34 { "ThreadUtils", base::RegisterThreadUtils }, |
| 33 }; | 35 }; |
| 34 | 36 |
| 35 bool RegisterJni(JNIEnv* env) { | 37 bool RegisterJni(JNIEnv* env) { |
| 36 TRACE_EVENT0("startup", "base_android::RegisterJni"); | 38 TRACE_EVENT0("startup", "base_android::RegisterJni"); |
| 37 return RegisterNativeMethods(env, kBaseRegisteredMethods, | 39 return RegisterNativeMethods(env, kBaseRegisteredMethods, |
| 38 arraysize(kBaseRegisteredMethods)); | 40 arraysize(kBaseRegisteredMethods)); |
| 39 } | 41 } |
| 40 | 42 |
| 41 } // namespace android | 43 } // namespace android |
| 42 } // namespace base | 44 } // namespace base |
| OLD | NEW |