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 10 matching lines...) Expand all Loading... |
21 PAGE = 3, | 21 PAGE = 3, |
22 | 22 |
23 // NOTE: Add entries only immediately above this line. | 23 // NOTE: Add entries only immediately above this line. |
24 TOTAL_COUNT = 4 | 24 TOTAL_COUNT = 4 |
25 }; | 25 }; |
26 | 26 |
27 // Why the Media Route Provider process was woken up. | 27 // Why the Media Route Provider process was woken up. |
28 enum class MediaRouteProviderWakeReason { | 28 enum class MediaRouteProviderWakeReason { |
29 CREATE_ROUTE = 0, | 29 CREATE_ROUTE = 0, |
30 JOIN_ROUTE = 1, | 30 JOIN_ROUTE = 1, |
31 CLOSE_ROUTE = 2, | 31 TERMINATE_ROUTE = 2, |
32 SEND_SESSION_MESSAGE = 3, | 32 SEND_SESSION_MESSAGE = 3, |
33 SEND_SESSION_BINARY_MESSAGE = 4, | 33 SEND_SESSION_BINARY_MESSAGE = 4, |
34 PRESENTATION_SESSION_DETACHED = 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 | 43 |
44 // NOTE: Add entries only immediately above this line. | 44 // NOTE: Add entries only immediately above this line. |
(...skipping 17 matching lines...) Expand all Loading... |
62 | 62 |
63 // Records the duration it takes for the Media Router dialog to load its | 63 // Records the duration it takes for the Media Router dialog to load its |
64 // initial data after a user clicks to open the dialog. | 64 // initial data after a user clicks to open the dialog. |
65 static void RecordMediaRouterDialogLoaded( | 65 static void RecordMediaRouterDialogLoaded( |
66 const base::TimeDelta delta); | 66 const base::TimeDelta delta); |
67 }; | 67 }; |
68 | 68 |
69 } // namespace media_router | 69 } // namespace media_router |
70 | 70 |
71 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_ | 71 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_ |
OLD | NEW |