summaryrefslogtreecommitdiffstats
path: root/components/gcm_driver/android/component_jni_registrar.cc
blob: e26336a0b24d5f4cc267a72ff45a9e897c40cca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/gcm_driver/android/component_jni_registrar.h"

#include "base/android/jni_android.h"
#include "base/android/jni_registrar.h"
#include "base/basictypes.h"
#include "components/gcm_driver/gcm_driver_android.h"

namespace gcm {

namespace android {

static base::android::RegistrationMethod kGCMDriverRegisteredMethods[] = {
    {"GCMDriver", gcm::GCMDriverAndroid::RegisterBindings},
};

bool RegisterGCMDriverJni(JNIEnv* env) {
  return base::android::RegisterNativeMethods(
      env,
      kGCMDriverRegisteredMethods,
      arraysize(kGCMDriverRegisteredMethods));
}

}  // namespace android

}  // namespace gcm