| // 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 "chromecast/base/metrics/cast_metrics_helper.h" | |
| #include "jni/CastMetricsHelper_jni.h" | |
| using base::android::JavaParamRef; | |
| namespace chromecast { | |
| namespace shell { | |
| void JNI_CastMetricsHelper_LogMediaPlay(JNIEnv* env, | |
| const JavaParamRef<jclass>& clazz) { | |
| metrics::CastMetricsHelper::GetInstance()->LogMediaPlay(); | |
| } | |
| void JNI_CastMetricsHelper_LogMediaPause(JNIEnv* env, | |
| const JavaParamRef<jclass>& clazz) { | |
| metrics::CastMetricsHelper::GetInstance()->LogMediaPause(); | |
| } | |
| } // namespace shell | |
| } // namespace chromecast |