Enterprise policy: Ignore the deprecated ForceSafeSearch if ForceGoogleSafeSearch...
[chromium-blink-merge.git] / base / android / base_jni_registrar.cc
blob46781e89c57764f8473561c2694c1cff3a6e3601
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/animation_frame_time_histogram.h"
8 #include "base/android/application_status_listener.h"
9 #include "base/android/build_info.h"
10 #include "base/android/command_line_android.h"
11 #include "base/android/content_uri_utils.h"
12 #include "base/android/cpu_features.h"
13 #include "base/android/event_log.h"
14 #include "base/android/field_trial_list.h"
15 #include "base/android/important_file_writer_android.h"
16 #include "base/android/java_handler_thread.h"
17 #include "base/android/jni_android.h"
18 #include "base/android/jni_registrar.h"
19 #include "base/android/jni_utils.h"
20 #include "base/android/locale_utils.h"
21 #include "base/android/memory_pressure_listener_android.h"
22 #include "base/android/path_service_android.h"
23 #include "base/android/path_utils.h"
24 #include "base/android/record_histogram.h"
25 #include "base/android/record_user_action.h"
26 #include "base/android/sys_utils.h"
27 #include "base/android/thread_utils.h"
28 #include "base/android/trace_event_binding.h"
29 #include "base/basictypes.h"
30 #include "base/message_loop/message_pump_android.h"
31 #include "base/power_monitor/power_monitor_device_source_android.h"
32 #include "base/trace_event/trace_event.h"
34 namespace base {
35 namespace android {
37 static RegistrationMethod kBaseRegisteredMethods[] = {
38 {"AnimationFrameTimeHistogram",
39 base::android::RegisterAnimationFrameTimeHistogram},
40 {"ApplicationStatusListener",
41 base::android::ApplicationStatusListener::RegisterBindings},
42 {"BuildInfo", base::android::BuildInfo::RegisterBindings},
43 {"CommandLine", base::android::RegisterCommandLine},
44 {"ContentUriUtils", base::RegisterContentUriUtils},
45 {"CpuFeatures", base::android::RegisterCpuFeatures},
46 {"EventLog", base::android::RegisterEventLog},
47 {"FieldTrialList", base::android::RegisterFieldTrialList},
48 {"ImportantFileWriterAndroid",
49 base::android::RegisterImportantFileWriterAndroid},
50 {"JNIUtils", base::android::RegisterJNIUtils},
51 {"LocaleUtils", base::android::RegisterLocaleUtils},
52 {"MemoryPressureListenerAndroid",
53 base::android::MemoryPressureListenerAndroid::Register},
54 {"JavaHandlerThread", base::android::JavaHandlerThread::RegisterBindings},
55 {"PathService", base::android::RegisterPathService},
56 {"PathUtils", base::android::RegisterPathUtils},
57 {"PowerMonitor", base::RegisterPowerMonitor},
58 {"RecordHistogram", base::android::RegisterRecordHistogram},
59 {"RecordUserAction", base::android::RegisterRecordUserAction},
60 {"SystemMessageHandler", base::MessagePumpForUI::RegisterBindings},
61 {"SysUtils", base::android::SysUtils::Register},
62 {"ThreadUtils", base::RegisterThreadUtils},
63 {"TraceEvent", base::android::RegisterTraceEvent},
66 bool RegisterJni(JNIEnv* env) {
67 TRACE_EVENT0("startup", "base_android::RegisterJni");
68 return RegisterNativeMethods(env, kBaseRegisteredMethods,
69 arraysize(kBaseRegisteredMethods));
72 } // namespace android
73 } // namespace base