Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_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 #include "chrome/browser/media/router/route_request_result.h" | 10 #include "chrome/browser/media/router/route_request_result.h" |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 START_OBSERVING_MEDIA_ROUTES = 8, | 36 START_OBSERVING_MEDIA_ROUTES = 8, |
| 37 STOP_OBSERVING_MEDIA_ROUTES = 9, | 37 STOP_OBSERVING_MEDIA_ROUTES = 9, |
| 38 START_LISTENING_FOR_ROUTE_MESSAGES = 10, | 38 START_LISTENING_FOR_ROUTE_MESSAGES = 10, |
| 39 STOP_LISTENING_FOR_ROUTE_MESSAGES = 11, | 39 STOP_LISTENING_FOR_ROUTE_MESSAGES = 11, |
| 40 CONNECTION_ERROR = 12, | 40 CONNECTION_ERROR = 12, |
| 41 REGISTER_MEDIA_ROUTE_PROVIDER = 13, | 41 REGISTER_MEDIA_ROUTE_PROVIDER = 13, |
| 42 CONNECT_ROUTE_BY_ROUTE_ID = 14, | 42 CONNECT_ROUTE_BY_ROUTE_ID = 14, |
| 43 ENABLE_MDNS_DISCOVERY = 15, | 43 ENABLE_MDNS_DISCOVERY = 15, |
| 44 UPDATE_MEDIA_SINKS = 16, | 44 UPDATE_MEDIA_SINKS = 16, |
| 45 SEARCH_SINKS = 17, | 45 SEARCH_SINKS = 17, |
| 46 ON_SINKS_DISCOVERED = 18, | |
|
mark a. foltz
2017/02/10 01:23:55
I think you'll need to update tools/metrics/histog
zhaobin
2017/02/16 22:56:35
Done.
| |
| 46 | 47 |
| 47 // NOTE: Add entries only immediately above this line. | 48 // NOTE: Add entries only immediately above this line. |
| 48 TOTAL_COUNT = 18 | 49 TOTAL_COUNT = 19 |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 // The install status of the Media Router component extension. | 52 // The install status of the Media Router component extension. |
| 52 enum class MediaRouteProviderVersion { | 53 enum class MediaRouteProviderVersion { |
| 53 // Installed but version is invalid or cannot be determined. | 54 // Installed but version is invalid or cannot be determined. |
| 54 UNKNOWN = 0, | 55 UNKNOWN = 0, |
| 55 // Installed and the extension version matches the browser version. | 56 // Installed and the extension version matches the browser version. |
| 56 SAME_VERSION_AS_CHROME = 1, | 57 SAME_VERSION_AS_CHROME = 1, |
| 57 // Installed and the extension version is one version behind the browser | 58 // Installed and the extension version is one version behind the browser |
| 58 // version. | 59 // version. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 108 | 109 |
| 109 // Returns the version status of the Media Router component extension. | 110 // Returns the version status of the Media Router component extension. |
| 110 static MediaRouteProviderVersion GetMediaRouteProviderVersion( | 111 static MediaRouteProviderVersion GetMediaRouteProviderVersion( |
| 111 const base::Version& extension_version, | 112 const base::Version& extension_version, |
| 112 const base::Version& browser_version); | 113 const base::Version& browser_version); |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 } // namespace media_router | 116 } // namespace media_router |
| 116 | 117 |
| 117 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_ | 118 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_ |
| OLD | NEW |