| 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/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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |