Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Side by Side Diff: base/android/base_jni_registrar.cc

Issue 2919553004: Remove base::android::OnJNIOnLoadRegisterJNI() (Closed)
Patch Set: remove unused Callback Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/android/base_jni_onload.cc ('k') | components/cronet/android/cronet_library_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/android/animation_frame_time_histogram.h" 7 #include "base/android/animation_frame_time_histogram.h"
8 #include "base/android/application_status_listener.h" 8 #include "base/android/application_status_listener.h"
9 #include "base/android/command_line_android.h" 9 #include "base/android/command_line_android.h"
10 #include "base/android/cpu_features.h" 10 #include "base/android/cpu_features.h"
11 #include "base/android/early_trace_event_binding.h" 11 #include "base/android/early_trace_event_binding.h"
12 #include "base/android/field_trial_list.h" 12 #include "base/android/field_trial_list.h"
13 #include "base/android/important_file_writer_android.h" 13 #include "base/android/important_file_writer_android.h"
14 #include "base/android/java_exception_reporter.h" 14 #include "base/android/java_exception_reporter.h"
15 #include "base/android/java_handler_thread.h" 15 #include "base/android/java_handler_thread.h"
16 #include "base/android/jni_android.h" 16 #include "base/android/jni_android.h"
17 #include "base/android/jni_registrar.h" 17 #include "base/android/jni_registrar.h"
18 #include "base/android/library_loader/library_loader_hooks.h"
18 #include "base/android/memory_pressure_listener_android.h" 19 #include "base/android/memory_pressure_listener_android.h"
19 #include "base/android/path_service_android.h" 20 #include "base/android/path_service_android.h"
20 #include "base/android/record_histogram.h" 21 #include "base/android/record_histogram.h"
21 #include "base/android/record_user_action.h" 22 #include "base/android/record_user_action.h"
22 #include "base/android/statistics_recorder_android.h" 23 #include "base/android/statistics_recorder_android.h"
23 #include "base/android/time_utils.h" 24 #include "base/android/time_utils.h"
24 #include "base/android/trace_event_binding.h" 25 #include "base/android/trace_event_binding.h"
25 #include "base/macros.h" 26 #include "base/macros.h"
26 #include "base/message_loop/message_pump_android.h" 27 #include "base/message_loop/message_pump_android.h"
27 #include "base/power_monitor/power_monitor_device_source_android.h" 28 #include "base/power_monitor/power_monitor_device_source_android.h"
28 #include "base/trace_event/trace_event.h" 29 #include "base/trace_event/trace_event.h"
29 30
30 namespace base { 31 namespace base {
31 namespace android { 32 namespace android {
32 33
33 static RegistrationMethod kBaseRegisteredMethods[] = { 34 static RegistrationMethod kBaseRegisteredMethods[] = {
34 {"AnimationFrameTimeHistogram", 35 {"AnimationFrameTimeHistogram",
35 base::android::RegisterAnimationFrameTimeHistogram}, 36 base::android::RegisterAnimationFrameTimeHistogram},
36 {"ApplicationStatusListener", 37 {"ApplicationStatusListener",
37 base::android::ApplicationStatusListener::RegisterBindings}, 38 base::android::ApplicationStatusListener::RegisterBindings},
38 {"CommandLine", base::android::RegisterCommandLine}, 39 {"CommandLine", base::android::RegisterCommandLine},
39 {"CpuFeatures", base::android::RegisterCpuFeatures}, 40 {"CpuFeatures", base::android::RegisterCpuFeatures},
40 {"EarlyTraceEvent", base::android::RegisterEarlyTraceEvent}, 41 {"EarlyTraceEvent", base::android::RegisterEarlyTraceEvent},
41 {"FieldTrialList", base::android::RegisterFieldTrialList}, 42 {"FieldTrialList", base::android::RegisterFieldTrialList},
42 {"ImportantFileWriterAndroid", 43 {"ImportantFileWriterAndroid",
43 base::android::RegisterImportantFileWriterAndroid}, 44 base::android::RegisterImportantFileWriterAndroid},
45 {"LibraryLoaderEntryHook", base::android::RegisterLibraryLoaderEntryHook},
44 {"MemoryPressureListenerAndroid", 46 {"MemoryPressureListenerAndroid",
45 base::android::MemoryPressureListenerAndroid::Register}, 47 base::android::MemoryPressureListenerAndroid::Register},
46 {"JavaExceptionReporter", base::android::RegisterJavaExceptionReporterJni}, 48 {"JavaExceptionReporter", base::android::RegisterJavaExceptionReporterJni},
47 {"JavaHandlerThread", base::android::JavaHandlerThread::RegisterBindings}, 49 {"JavaHandlerThread", base::android::JavaHandlerThread::RegisterBindings},
48 {"PathService", base::android::RegisterPathService}, 50 {"PathService", base::android::RegisterPathService},
49 {"PowerMonitor", base::RegisterPowerMonitor}, 51 {"PowerMonitor", base::RegisterPowerMonitor},
50 {"RecordHistogram", base::android::RegisterRecordHistogram}, 52 {"RecordHistogram", base::android::RegisterRecordHistogram},
51 {"RecordUserAction", base::android::RegisterRecordUserAction}, 53 {"RecordUserAction", base::android::RegisterRecordUserAction},
52 {"StatisticsRecorderAndroid", 54 {"StatisticsRecorderAndroid",
53 base::android::RegisterStatisticsRecorderAndroid}, 55 base::android::RegisterStatisticsRecorderAndroid},
54 {"SystemMessageHandler", base::MessagePumpForUI::RegisterBindings}, 56 {"SystemMessageHandler", base::MessagePumpForUI::RegisterBindings},
55 {"TimeUtils", base::android::RegisterTimeUtils}, 57 {"TimeUtils", base::android::RegisterTimeUtils},
56 {"TraceEvent", base::android::RegisterTraceEvent}, 58 {"TraceEvent", base::android::RegisterTraceEvent},
57 }; 59 };
58 60
59 bool RegisterJni(JNIEnv* env) { 61 bool RegisterJni(JNIEnv* env) {
60 TRACE_EVENT0("startup", "base_android::RegisterJni"); 62 TRACE_EVENT0("startup", "base_android::RegisterJni");
61 return RegisterNativeMethods(env, kBaseRegisteredMethods, 63 return RegisterNativeMethods(env, kBaseRegisteredMethods,
62 arraysize(kBaseRegisteredMethods)); 64 arraysize(kBaseRegisteredMethods));
63 } 65 }
64 66
65 } // namespace android 67 } // namespace android
66 } // namespace base 68 } // namespace base
OLDNEW
« no previous file with comments | « base/android/base_jni_onload.cc ('k') | components/cronet/android/cronet_library_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698