summaryrefslogtreecommitdiffstats
path: root/chrome/browser/push_messaging/push_messaging_service_observer_android.cc
blob: affbcaab3a4385b922e7b24b9b871cd57187c595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2015 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 "chrome/browser/push_messaging/push_messaging_service_observer_android.h"

#include "base/android/jni_android.h"
#include "jni/PushMessagingServiceObserver_jni.h"

// static
bool PushMessagingServiceObserverAndroid::RegisterJni(JNIEnv* env) {
  return chrome::android::RegisterNativesImpl(env);
}

void PushMessagingServiceObserverAndroid::OnMessageHandled() {
  chrome::android::Java_PushMessagingServiceObserver_onMessageHandled(
      base::android::AttachCurrentThread());
}