| 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 ENABLE_MDNS_DISCOVERY = 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 actions a user can take while interacting with the Media Router | 50 // The possible actions a user can take while interacting with the Media Router |
| 50 // dialog. | 51 // dialog. |
| 51 enum class MediaRouterUserAction { | 52 enum class MediaRouterUserAction { |
| 52 CHANGE_MODE = 0, | 53 CHANGE_MODE = 0, |
| 53 START_LOCAL = 1, | 54 START_LOCAL = 1, |
| 54 STOP_LOCAL = 2, | 55 STOP_LOCAL = 2, |
| 55 CLOSE = 3, | 56 CLOSE = 3, |
| 56 STATUS_REMOTE = 4, | 57 STATUS_REMOTE = 4, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 81 | 82 |
| 82 // Records the first action the user took after the Media Router dialog | 83 // Records the first action the user took after the Media Router dialog |
| 83 // opened. | 84 // opened. |
| 84 static void RecordMediaRouterInitialUserAction( | 85 static void RecordMediaRouterInitialUserAction( |
| 85 MediaRouterUserAction action); | 86 MediaRouterUserAction action); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace media_router | 89 } // namespace media_router |
| 89 | 90 |
| 90 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_ | 91 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_ |
| OLD | NEW |