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

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

Issue 1895783003: [Media Router] Wire through a new MRPM call to update media sinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 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 10
(...skipping 22 matching lines...) Expand all
33 START_OBSERVING_MEDIA_SINKS = 6, 33 START_OBSERVING_MEDIA_SINKS = 6,
34 STOP_OBSERVING_MEDIA_SINKS = 7, 34 STOP_OBSERVING_MEDIA_SINKS = 7,
35 START_OBSERVING_MEDIA_ROUTES = 8, 35 START_OBSERVING_MEDIA_ROUTES = 8,
36 STOP_OBSERVING_MEDIA_ROUTES = 9, 36 STOP_OBSERVING_MEDIA_ROUTES = 9,
37 LISTEN_FOR_ROUTE_MESSAGES = 10, 37 LISTEN_FOR_ROUTE_MESSAGES = 10,
38 STOP_LISTENING_FOR_ROUTE_MESSAGES = 11, 38 STOP_LISTENING_FOR_ROUTE_MESSAGES = 11,
39 CONNECTION_ERROR = 12, 39 CONNECTION_ERROR = 12,
40 REGISTER_MEDIA_ROUTE_PROVIDER = 13, 40 REGISTER_MEDIA_ROUTE_PROVIDER = 13,
41 CONNECT_ROUTE_BY_ROUTE_ID = 14, 41 CONNECT_ROUTE_BY_ROUTE_ID = 14,
42 ENABLE_MDNS_DISCOVERY = 15, 42 ENABLE_MDNS_DISCOVERY = 15,
43 UPDATE_MEDIA_SINKS = 16,
43 44
44 // NOTE: Add entries only immediately above this line. 45 // NOTE: Add entries only immediately above this line.
45 TOTAL_COUNT = 16 46 TOTAL_COUNT = 17
46 }; 47 };
47 48
48 // The install status of the Media Router component extension. 49 // The install status of the Media Router component extension.
49 enum class MediaRouteProviderVersion { 50 enum class MediaRouteProviderVersion {
50 // Installed but version is invalid or cannot be determined. 51 // Installed but version is invalid or cannot be determined.
51 UNKNOWN = 0, 52 UNKNOWN = 0,
52 // Installed and the extension version matches the browser version. 53 // Installed and the extension version matches the browser version.
53 SAME_VERSION_AS_CHROME = 1, 54 SAME_VERSION_AS_CHROME = 1,
54 // Installed and the extension version is one version behind the browser 55 // Installed and the extension version is one version behind the browser
55 // version. 56 // version.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 91
91 // Returns the version status of the Media Router component extension. 92 // Returns the version status of the Media Router component extension.
92 static MediaRouteProviderVersion GetMediaRouteProviderVersion( 93 static MediaRouteProviderVersion GetMediaRouteProviderVersion(
93 const base::Version& extension_version, 94 const base::Version& extension_version,
94 const base::Version& browser_version); 95 const base::Version& browser_version);
95 }; 96 };
96 97
97 } // namespace media_router 98 } // namespace media_router
98 99
99 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_ 100 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698