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

Side by Side Diff: chrome/browser/media/router/mojo/media_router_mojo_metrics.h

Issue 2728543009: [Media Router] Custom Controls 2 - add MediaRouter::GetRouteController() (Closed)
Patch Set: Address Derek's comments Created 3 years, 8 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 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 26 matching lines...) Expand all
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 PROVIDE_SINKS = 18, 46 PROVIDE_SINKS = 18,
47 CREATE_MEDIA_ROUTE_CONTROLLER_AND_SET_OBSERVER = 19,
imcheng 2017/04/07 22:45:48 You will also need to update tools/metrics/histogr
takumif 2017/04/11 04:08:37 Done.
47 48
48 // NOTE: Add entries only immediately above this line. 49 // NOTE: Add entries only immediately above this line.
49 TOTAL_COUNT = 19 50 TOTAL_COUNT = 20
50 }; 51 };
51 52
52 // The install status of the Media Router component extension. 53 // The install status of the Media Router component extension.
53 enum class MediaRouteProviderVersion { 54 enum class MediaRouteProviderVersion {
54 // Installed but version is invalid or cannot be determined. 55 // Installed but version is invalid or cannot be determined.
55 UNKNOWN = 0, 56 UNKNOWN = 0,
56 // Installed and the extension version matches the browser version. 57 // Installed and the extension version matches the browser version.
57 SAME_VERSION_AS_CHROME = 1, 58 SAME_VERSION_AS_CHROME = 1,
58 // Installed and the extension version is one version behind the browser 59 // Installed and the extension version is one version behind the browser
59 // version. 60 // version.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 110
110 // Returns the version status of the Media Router component extension. 111 // Returns the version status of the Media Router component extension.
111 static MediaRouteProviderVersion GetMediaRouteProviderVersion( 112 static MediaRouteProviderVersion GetMediaRouteProviderVersion(
112 const base::Version& extension_version, 113 const base::Version& extension_version,
113 const base::Version& browser_version); 114 const base::Version& browser_version);
114 }; 115 };
115 116
116 } // namespace media_router 117 } // namespace media_router
117 118
118 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_ 119 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698