[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / base / android / base_jni_registrar.cc
bloba7a5fd2415eed260a61e51079a13158bf0221699
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.
5 #include "base/android/base_jni_registrar.h"
7 #include "base/android/application_status_listener.h"
8 #include "base/android/build_info.h"
9 #include "base/android/command_line_android.h"
10 #include "base/android/content_uri_utils.h"
11 #include "base/android/cpu_features.h"
12 #include "base/android/event_log.h"
13 #include "base/android/field_trial_list.h"
14 #include "base/android/important_file_writer_android.h"
15 #include "base/android/java_handler_thread.h"
16 #include "base/android/jni_android.h"
17 #include "base/android/jni_registrar.h"
18 #include "base/android/memory_pressure_listener_android.h"
19 #include "base/android/path_service_android.h"
20 #include "base/android/path_utils.h"
21 #include "base/android/sys_utils.h"
22 #include "base/android/thread_utils.h"
23 #include "base/android/trace_event_binding.h"
24 #include "base/basictypes.h"
25 #include "base/debug/trace_event.h"
26 #include "base/message_loop/message_pump_android.h"
27 #include "base/power_monitor/power_monitor_device_source_android.h"
29 namespace base {
30 namespace android {
32 static RegistrationMethod kBaseRegisteredMethods[] = {
33 { "ApplicationStatusListener",
34 base::android::ApplicationStatusListener::RegisterBindings },
35 { "BuildInfo", base::android::BuildInfo::RegisterBindings },
36 { "CommandLine", base::android::RegisterCommandLine },
37 { "ContentUriUtils", base::RegisterContentUriUtils },
38 { "CpuFeatures", base::android::RegisterCpuFeatures },
39 { "EventLog", base::android::RegisterEventLog },
40 { "FieldTrialList", base::android::RegisterFieldTrialList },
41 { "ImportantFileWriterAndroid",
42 base::android::RegisterImportantFileWriterAndroid },
43 { "MemoryPressureListenerAndroid",
44 base::android::MemoryPressureListenerAndroid::Register },
45 { "JavaHandlerThread", base::android::JavaHandlerThread::RegisterBindings },
46 { "PathService", base::android::RegisterPathService },
47 { "PathUtils", base::android::RegisterPathUtils },
48 { "SystemMessageHandler", base::MessagePumpForUI::RegisterBindings },
49 { "SysUtils", base::android::SysUtils::Register },
50 { "PowerMonitor", base::RegisterPowerMonitor },
51 { "ThreadUtils", base::RegisterThreadUtils },
52 { "TraceEvent", base::android::RegisterTraceEvent },
55 bool RegisterJni(JNIEnv* env) {
56 TRACE_EVENT0("startup", "base_android::RegisterJni");
57 return RegisterNativeMethods(env, kBaseRegisteredMethods,
58 arraysize(kBaseRegisteredMethods));
61 } // namespace android
62 } // namespace base