Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: chromecast/browser/android/cast_metrics_helper_android.cc

Issue 2570623003: [Chromecast] Turn CastContentWindow into an abstract interface. (Closed)
Patch Set: Fix browser test Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « chromecast/browser/android/cast_metrics_helper_android.h ('k') | chromecast/browser/android/cast_web_contents_activity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698