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

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

Issue 2062913002: [Media Router] Allow casting new media to sink with existing route. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 10
(...skipping 28 matching lines...) Expand all
39 }; 39 };
40 40
41 // The possible actions a user can take while interacting with the Media Router 41 // The possible actions a user can take while interacting with the Media Router
42 // dialog. 42 // dialog.
43 enum class MediaRouterUserAction { 43 enum class MediaRouterUserAction {
44 CHANGE_MODE = 0, 44 CHANGE_MODE = 0,
45 START_LOCAL = 1, 45 START_LOCAL = 1,
46 STOP_LOCAL = 2, 46 STOP_LOCAL = 2,
47 CLOSE = 3, 47 CLOSE = 3,
48 STATUS_REMOTE = 4, 48 STATUS_REMOTE = 4,
49 REPLACE_LOCAL_ROUTE = 5,
49 50
50 // Note: Add entries only immediately above this line. 51 // Note: Add entries only immediately above this line.
51 TOTAL_COUNT = 5 52 TOTAL_COUNT = 6
52 }; 53 };
53 54
54 class MediaRouterMetrics { 55 class MediaRouterMetrics {
55 public: 56 public:
56 // Records where the user clicked to open the Media Router dialog. 57 // Records where the user clicked to open the Media Router dialog.
57 static void RecordMediaRouterDialogOrigin( 58 static void RecordMediaRouterDialogOrigin(
58 MediaRouterDialogOpenOrigin origin); 59 MediaRouterDialogOpenOrigin origin);
59 60
60 // Records the duration it takes for the Media Router dialog to open and 61 // Records the duration it takes for the Media Router dialog to open and
61 // finish painting after a user clicks to open the dialog. 62 // finish painting after a user clicks to open the dialog.
(...skipping 11 matching lines...) Expand all
73 MediaRouterUserAction action); 74 MediaRouterUserAction action);
74 75
75 // Records the outcome in a create route response. 76 // Records the outcome in a create route response.
76 static void RecordRouteCreationOutcome( 77 static void RecordRouteCreationOutcome(
77 MediaRouterRouteCreationOutcome outcome); 78 MediaRouterRouteCreationOutcome outcome);
78 }; 79 };
79 80
80 } // namespace media_router 81 } // namespace media_router
81 82
82 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_ 83 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698