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

Side by Side Diff: chrome/browser/media/router/media_router_metrics.h

Issue 2916163002: [MediaRouter] Record DIAL device counts in DialMediaSinkServiceImpl (Closed)
Patch Set: Created 3 years, 6 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 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 STATUS_REMOTE = 4, 48 STATUS_REMOTE = 4,
49 REPLACE_LOCAL_ROUTE = 5, 49 REPLACE_LOCAL_ROUTE = 5,
50 50
51 // Note: Add entries only immediately above this line. 51 // Note: Add entries only immediately above this line.
52 TOTAL_COUNT = 6 52 TOTAL_COUNT = 6
53 }; 53 };
54 54
55 class MediaRouterMetrics { 55 class MediaRouterMetrics {
56 public: 56 public:
57 // UMA histogram names. 57 // UMA histogram names.
58 static const char kDialAvailableDeviceCount[];
59 static const char kDialKnownDeviceCount[];
58 static const char kHistogramIconClickLocation[]; 60 static const char kHistogramIconClickLocation[];
59 static const char kHistogramUiDialogPaint[]; 61 static const char kHistogramUiDialogPaint[];
60 static const char kHistogramUiDialogLoadedWithData[]; 62 static const char kHistogramUiDialogLoadedWithData[];
61 static const char kHistogramUiFirstAction[]; 63 static const char kHistogramUiFirstAction[];
62 static const char kHistogramRouteCreationOutcome[]; 64 static const char kHistogramRouteCreationOutcome[];
63 65
64 // Records where the user clicked to open the Media Router dialog. 66 // Records where the user clicked to open the Media Router dialog.
65 static void RecordMediaRouterDialogOrigin( 67 static void RecordMediaRouterDialogOrigin(
66 MediaRouterDialogOpenOrigin origin); 68 MediaRouterDialogOpenOrigin origin);
67 69
68 // Records the duration it takes for the Media Router dialog to open and 70 // Records the duration it takes for the Media Router dialog to open and
69 // finish painting after a user clicks to open the dialog. 71 // finish painting after a user clicks to open the dialog.
70 static void RecordMediaRouterDialogPaint( 72 static void RecordMediaRouterDialogPaint(
71 const base::TimeDelta delta); 73 const base::TimeDelta delta);
72 74
73 // Records the duration it takes for the Media Router dialog to load its 75 // Records the duration it takes for the Media Router dialog to load its
74 // initial data after a user clicks to open the dialog. 76 // initial data after a user clicks to open the dialog.
75 static void RecordMediaRouterDialogLoaded( 77 static void RecordMediaRouterDialogLoaded(
76 const base::TimeDelta delta); 78 const base::TimeDelta delta);
77 79
78 // Records the first action the user took after the Media Router dialog 80 // Records the first action the user took after the Media Router dialog
79 // opened. 81 // opened.
80 static void RecordMediaRouterInitialUserAction( 82 static void RecordMediaRouterInitialUserAction(
81 MediaRouterUserAction action); 83 MediaRouterUserAction action);
82 84
83 // Records the outcome in a create route response. 85 // Records the outcome in a create route response.
84 static void RecordRouteCreationOutcome( 86 static void RecordRouteCreationOutcome(
85 MediaRouterRouteCreationOutcome outcome); 87 MediaRouterRouteCreationOutcome outcome);
88
89 // Records device counts.
90 static void RecordDialDeviceCounts(size_t available_device_count,
91 size_t known_device_count);
86 }; 92 };
87 93
88 } // namespace media_router 94 } // namespace media_router
89 95
90 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_ 96 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698