• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/device_telephony_info.h"
10 #include "content/common/android/hash_set.h"
11 #include "content/common/android/trace_event_binding.h"
12 
13 namespace {
14 base::android::RegistrationMethod kContentRegisteredMethods[] = {
15   { "DeviceTelephonyInfo",
16         content::DeviceTelephonyInfo::RegisterDeviceTelephonyInfo },
17   { "HashSet", content::RegisterHashSet },
18   { "TraceEvent", RegisterTraceEvent },
19 };
20 
21 }  // namespace
22 
23 namespace content {
24 namespace android {
25 
RegisterCommonJni(JNIEnv * env)26 bool RegisterCommonJni(JNIEnv* env) {
27   return RegisterNativeMethods(env, kContentRegisteredMethods,
28                                arraysize(kContentRegisteredMethods));
29 }
30 
31 }  // namespace android
32 }  // namespace content
33