| 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 #ifndef CHROMECAST_BASE_METRICS_CAST_METRICS_HELPER_H_ | 5 #ifndef CHROMECAST_BASE_METRICS_CAST_METRICS_HELPER_H_ | 
| 6 #define CHROMECAST_BASE_METRICS_CAST_METRICS_HELPER_H_ | 6 #define CHROMECAST_BASE_METRICS_CAST_METRICS_HELPER_H_ | 
| 7 | 7 | 
| 8 #include <string> | 8 #include <string> | 
| 9 | 9 | 
| 10 #include "base/callback.h" | 10 #include "base/callback.h" | 
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 69                                     const std::string& sdk_version); | 69                                     const std::string& sdk_version); | 
| 70 | 70 | 
| 71   // Logs UMA record for media play/pause user actions. | 71   // Logs UMA record for media play/pause user actions. | 
| 72   virtual void LogMediaPlay(); | 72   virtual void LogMediaPlay(); | 
| 73   virtual void LogMediaPause(); | 73   virtual void LogMediaPause(); | 
| 74 | 74 | 
| 75   // Logs a simple UMA user action. | 75   // Logs a simple UMA user action. | 
| 76   // This is used as an in-place replacement of content::RecordComputedAction(). | 76   // This is used as an in-place replacement of content::RecordComputedAction(). | 
| 77   virtual void RecordSimpleAction(const std::string& action); | 77   virtual void RecordSimpleAction(const std::string& action); | 
| 78 | 78 | 
|  | 79   // Logs UMA record of the time the app made its first paint. | 
|  | 80   virtual void LogTimeToFirstPaint(); | 
|  | 81 | 
| 79   // Logs UMA record of the elapsed time from the app launch | 82   // Logs UMA record of the elapsed time from the app launch | 
| 80   // to the time first video frame is displayed. | 83   // to the time first video frame is displayed. | 
| 81   virtual void LogTimeToDisplayVideo(); | 84   virtual void LogTimeToDisplayVideo(); | 
| 82 | 85 | 
| 83   // Logs UMA record of the time needed to re-buffer A/V. | 86   // Logs UMA record of the time needed to re-buffer A/V. | 
| 84   virtual void LogTimeToBufferAv(BufferingType buffering_type, | 87   virtual void LogTimeToBufferAv(BufferingType buffering_type, | 
| 85                                  base::TimeDelta time); | 88                                  base::TimeDelta time); | 
| 86 | 89 | 
| 87   virtual void ResetVideoFrameSampling(); | 90   virtual void ResetVideoFrameSampling(); | 
| 88 | 91 | 
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 153   // Default RecordAction callback when metrics_sink_ is not set. | 156   // Default RecordAction callback when metrics_sink_ is not set. | 
| 154   RecordActionCallback record_action_callback_; | 157   RecordActionCallback record_action_callback_; | 
| 155 | 158 | 
| 156   DISALLOW_COPY_AND_ASSIGN(CastMetricsHelper); | 159   DISALLOW_COPY_AND_ASSIGN(CastMetricsHelper); | 
| 157 }; | 160 }; | 
| 158 | 161 | 
| 159 }  // namespace metrics | 162 }  // namespace metrics | 
| 160 }  // namespace chromecast | 163 }  // namespace chromecast | 
| 161 | 164 | 
| 162 #endif  // CHROMECAST_BASE_METRICS_CAST_METRICS_HELPER_H_ | 165 #endif  // CHROMECAST_BASE_METRICS_CAST_METRICS_HELPER_H_ | 
| OLD | NEW | 
|---|