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

Side by Side Diff: chromecast/base/metrics/cast_metrics_helper.h

Issue 824733002: Support for defered media load to cast_content_render_client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New metrics. Created 5 years, 12 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
« no previous file with comments | « no previous file | chromecast/base/metrics/cast_metrics_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chromecast/base/metrics/cast_metrics_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698