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. 4 5 #include "content/common/android/common_jni_registrar.h" 6 7 #include "base/android/jni_android.h" 8 #include "base/android/jni_registrar.h" 9 #include "content/common/android/command_line.h" 10 #include "content/common/android/device_telephony_info.h" 11 #include "content/common/android/hash_set.h" 12 #include "content/common/android/trace_event_binding.h" 13 14 namespace { 15 base::android::RegistrationMethod kContentRegisteredMethods[] = { 16 { "CommandLine", RegisterCommandLine }, 17 { "DeviceTelephonyInfo", 18 content::DeviceTelephonyInfo::RegisterDeviceTelephonyInfo }, 19 { "HashSet", content::RegisterHashSet }, 20 { "TraceEvent", RegisterTraceEvent }, 21 }; 22 23 } // namespace 24 25 namespace content { 26 namespace android { 27 28 bool RegisterCommonJni(JNIEnv* env) { 29 return RegisterNativeMethods(env, kContentRegisteredMethods, 30 arraysize(kContentRegisteredMethods)); 31 } 32 33 } // namespace android 34 } // namespace content 35