OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/media/android/remote/record_cast_action.h" | 5 #include "chrome/browser/media/android/remote/record_cast_action.h" |
6 | 6 |
7 #include <jni.h> | 7 #include <jni.h> |
8 | 8 |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram_macros.h" |
10 #include "content/public/browser/user_metrics.h" | 10 #include "content/public/browser/user_metrics.h" |
11 #include "jni/RecordCastAction_jni.h" | 11 #include "jni/RecordCastAction_jni.h" |
12 #include "media/base/container_names.h" | 12 #include "media/base/container_names.h" |
13 | 13 |
14 using base::UserMetricsAction; | 14 using base::UserMetricsAction; |
15 using base::android::JavaParamRef; | 15 using base::android::JavaParamRef; |
16 using content::RecordAction; | 16 using content::RecordAction; |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 UMA_HISTOGRAM_ENUMERATION("Cast.Sender.CastTimeRemainingPercentage", | 103 UMA_HISTOGRAM_ENUMERATION("Cast.Sender.CastTimeRemainingPercentage", |
104 percent_remaining, 101); | 104 percent_remaining, 101); |
105 } | 105 } |
106 | 106 |
107 // Register native methods | 107 // Register native methods |
108 bool RegisterRecordCastAction(JNIEnv* env) { | 108 bool RegisterRecordCastAction(JNIEnv* env) { |
109 return RegisterNativesImpl(env); | 109 return RegisterNativesImpl(env); |
110 } | 110 } |
111 | 111 |
112 } // namespace remote_media | 112 } // namespace remote_media |
OLD | NEW |