| OLD | NEW |
| 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/time/time.h" | 8 #include "base/time/time.h" |
| 9 | 9 |
| 10 namespace media_router { | 10 namespace media_router { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 DETACH_ROUTE = 5, | 34 DETACH_ROUTE = 5, |
| 35 START_OBSERVING_MEDIA_SINKS = 6, | 35 START_OBSERVING_MEDIA_SINKS = 6, |
| 36 STOP_OBSERVING_MEDIA_SINKS = 7, | 36 STOP_OBSERVING_MEDIA_SINKS = 7, |
| 37 START_OBSERVING_MEDIA_ROUTES = 8, | 37 START_OBSERVING_MEDIA_ROUTES = 8, |
| 38 STOP_OBSERVING_MEDIA_ROUTES = 9, | 38 STOP_OBSERVING_MEDIA_ROUTES = 9, |
| 39 LISTEN_FOR_ROUTE_MESSAGES = 10, | 39 LISTEN_FOR_ROUTE_MESSAGES = 10, |
| 40 STOP_LISTENING_FOR_ROUTE_MESSAGES = 11, | 40 STOP_LISTENING_FOR_ROUTE_MESSAGES = 11, |
| 41 CONNECTION_ERROR = 12, | 41 CONNECTION_ERROR = 12, |
| 42 REGISTER_MEDIA_ROUTE_PROVIDER = 13, | 42 REGISTER_MEDIA_ROUTE_PROVIDER = 13, |
| 43 CONNECT_ROUTE_BY_ROUTE_ID = 14, | 43 CONNECT_ROUTE_BY_ROUTE_ID = 14, |
| 44 SEARCH_SINKS = 15, |
| 44 | 45 |
| 45 // NOTE: Add entries only immediately above this line. | 46 // NOTE: Add entries only immediately above this line. |
| 46 TOTAL_COUNT = 15 | 47 TOTAL_COUNT = 16 |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 // The possible outcomes from a route creation response. | 50 // The possible outcomes from a route creation response. |
| 50 enum class MediaRouterRouteCreationOutcome { | 51 enum class MediaRouterRouteCreationOutcome { |
| 51 SUCCESS = 0, | 52 SUCCESS = 0, |
| 52 FAILURE_NO_ROUTE = 1, | 53 FAILURE_NO_ROUTE = 1, |
| 53 FAILURE_INVALID_SINK = 2, | 54 FAILURE_INVALID_SINK = 2, |
| 54 | 55 |
| 55 // Note: Add entries only immediately above this line. | 56 // Note: Add entries only immediately above this line. |
| 56 TOTAL_COUNT = 3, | 57 TOTAL_COUNT = 3, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 MediaRouterUserAction action); | 96 MediaRouterUserAction action); |
| 96 | 97 |
| 97 // Records the outcome in a create route response. | 98 // Records the outcome in a create route response. |
| 98 static void RecordRouteCreationOutcome( | 99 static void RecordRouteCreationOutcome( |
| 99 MediaRouterRouteCreationOutcome outcome); | 100 MediaRouterRouteCreationOutcome outcome); |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } // namespace media_router | 103 } // namespace media_router |
| 103 | 104 |
| 104 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_ | 105 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_ |
| OLD | NEW |