| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |