OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromecast/android/cast_metrics_helper_android.h" | 5 #include "chromecast/browser/android/cast_metrics_helper_android.h" |
6 | 6 |
7 #include "chromecast/base/metrics/cast_metrics_helper.h" | 7 #include "chromecast/base/metrics/cast_metrics_helper.h" |
8 #include "jni/CastMetricsHelper_jni.h" | 8 #include "jni/CastMetricsHelper_jni.h" |
9 | 9 |
10 using base::android::JavaParamRef; | 10 using base::android::JavaParamRef; |
11 | 11 |
12 namespace chromecast { | 12 namespace chromecast { |
| 13 namespace shell { |
13 | 14 |
14 // static | 15 // static |
15 bool CastMetricsHelperAndroid::RegisterJni(JNIEnv* env) { | 16 bool CastMetricsHelperAndroid::RegisterJni(JNIEnv* env) { |
16 return RegisterNativesImpl(env); | 17 return RegisterNativesImpl(env); |
17 } | 18 } |
18 | 19 |
19 void LogMediaPlay(JNIEnv* env, const JavaParamRef<jclass>& clazz) { | 20 void LogMediaPlay(JNIEnv* env, const JavaParamRef<jclass>& clazz) { |
20 metrics::CastMetricsHelper::GetInstance()->LogMediaPlay(); | 21 metrics::CastMetricsHelper::GetInstance()->LogMediaPlay(); |
21 } | 22 } |
22 | 23 |
23 void LogMediaPause(JNIEnv* env, const JavaParamRef<jclass>& clazz) { | 24 void LogMediaPause(JNIEnv* env, const JavaParamRef<jclass>& clazz) { |
24 metrics::CastMetricsHelper::GetInstance()->LogMediaPause(); | 25 metrics::CastMetricsHelper::GetInstance()->LogMediaPause(); |
25 } | 26 } |
26 | 27 |
| 28 } // namespace shell |
27 } // namespace chromecast | 29 } // namespace chromecast |
OLD | NEW |