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

Side by Side Diff: chrome/browser/media/router/mojo/media_router_mojo_metrics.h

Issue 2894623002: [Media Router] Add UMA metrics for media route controller creation (Closed)
Patch Set: Created 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_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 #include "chrome/common/media_router/route_request_result.h" 10 #include "chrome/common/media_router/route_request_result.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Records the outcome of a join route request to the Media Route Provider 97 // Records the outcome of a join route request to the Media Route Provider
98 // Manager. 98 // Manager.
99 static void RecordJoinRouteResultCode( 99 static void RecordJoinRouteResultCode(
100 RouteRequestResult::ResultCode result_code); 100 RouteRequestResult::ResultCode result_code);
101 101
102 // Records the outcome of a call to terminateRoute() on the Media Route 102 // Records the outcome of a call to terminateRoute() on the Media Route
103 // Provider Manager. 103 // Provider Manager.
104 static void RecordMediaRouteProviderTerminateRoute( 104 static void RecordMediaRouteProviderTerminateRoute(
105 RouteRequestResult::ResultCode result_code); 105 RouteRequestResult::ResultCode result_code);
106 106
107 // Records whether the Media Route Provider succeeded or failed to create a
108 // controller for a media route.
109 static void RecordMediaRouteControllerCreationResult(bool success);
110
107 private: 111 private:
108 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoMetricsTest, 112 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoMetricsTest,
109 TestGetMediaRouteProviderVersion); 113 TestGetMediaRouteProviderVersion);
110 114
111 // Returns the version status of the Media Router component extension. 115 // Returns the version status of the Media Router component extension.
112 static MediaRouteProviderVersion GetMediaRouteProviderVersion( 116 static MediaRouteProviderVersion GetMediaRouteProviderVersion(
113 const base::Version& extension_version, 117 const base::Version& extension_version,
114 const base::Version& browser_version); 118 const base::Version& browser_version);
115 }; 119 };
116 120
117 } // namespace media_router 121 } // namespace media_router
118 122
119 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_ 123 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698