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

Side by Side Diff: chrome/browser/media/router/media_router_metrics.h

Issue 1805813002: [Media Router] Wiring for searching route providers for new sinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698