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

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

Issue 1974723002: [Chromecast] Add metric reporting to ConnectivityCheckerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Add CastMetricsHelper::RecordEventWithValue Created 4 years, 7 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 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual void UpdateSDKInfo(const std::string& sdk_version); 70 virtual void UpdateSDKInfo(const std::string& sdk_version);
71 71
72 // Logs UMA record for media play/pause user actions. 72 // Logs UMA record for media play/pause user actions.
73 virtual void LogMediaPlay(); 73 virtual void LogMediaPlay();
74 virtual void LogMediaPause(); 74 virtual void LogMediaPause();
75 75
76 // Logs a simple UMA user action. 76 // Logs a simple UMA user action.
77 // This is used as an in-place replacement of content::RecordComputedAction(). 77 // This is used as an in-place replacement of content::RecordComputedAction().
78 virtual void RecordSimpleAction(const std::string& action); 78 virtual void RecordSimpleAction(const std::string& action);
79 79
80 // Logs a generic event.
81 virtual void RecordEventWithValue(const std::string& action, int value);
82
80 // Logs application specific events. 83 // Logs application specific events.
81 virtual void RecordApplicationEvent(const std::string& event); 84 virtual void RecordApplicationEvent(const std::string& event);
82 virtual void RecordApplicationEventWithValue(const std::string& event, 85 virtual void RecordApplicationEventWithValue(const std::string& event,
83 int value); 86 int value);
84 87
85 // Logs UMA record of the time the app made its first paint. 88 // Logs UMA record of the time the app made its first paint.
86 virtual void LogTimeToFirstPaint(); 89 virtual void LogTimeToFirstPaint();
87 90
88 // Logs UMA record of the time the app pushed its first audio frame. 91 // Logs UMA record of the time the app pushed its first audio frame.
89 virtual void LogTimeToFirstAudio(); 92 virtual void LogTimeToFirstAudio();
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // Default RecordAction callback when metrics_sink_ is not set. 155 // Default RecordAction callback when metrics_sink_ is not set.
153 RecordActionCallback record_action_callback_; 156 RecordActionCallback record_action_callback_;
154 157
155 DISALLOW_COPY_AND_ASSIGN(CastMetricsHelper); 158 DISALLOW_COPY_AND_ASSIGN(CastMetricsHelper);
156 }; 159 };
157 160
158 } // namespace metrics 161 } // namespace metrics
159 } // namespace chromecast 162 } // namespace chromecast
160 163
161 #endif // CHROMECAST_BASE_METRICS_CAST_METRICS_HELPER_H_ 164 #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') | chromecast/net/connectivity_checker_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698