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

Side by Side Diff: chrome/browser/media/router/media_router.mojom

Issue 1805813002: [Media Router] Wiring for searching route providers for new sinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 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 module media_router.interfaces; 5 module media_router.interfaces;
6 6
7 // Represents an output sink to which media can be routed. 7 // Represents an output sink to which media can be routed.
8 struct MediaSink { 8 struct MediaSink {
9 enum IconType { 9 enum IconType {
10 CAST, 10 CAST,
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 // Called when there are no more listeners for messages for |route_id|. 257 // Called when there are no more listeners for messages for |route_id|.
258 // Calling this will resolve the pending |ListenForRouteMessages| callback 258 // Calling this will resolve the pending |ListenForRouteMessages| callback
259 // with an empty list. 259 // with an empty list.
260 StopListeningForRouteMessages(string route_id); 260 StopListeningForRouteMessages(string route_id);
261 261
262 // Indicates that a PresentationConnection that was connected to route 262 // Indicates that a PresentationConnection that was connected to route
263 // |route_id| has been closed (via .close(), garbage collection or 263 // |route_id| has been closed (via .close(), garbage collection or
264 // navigation). 264 // navigation).
265 DetachRoute(string route_id); 265 DetachRoute(string route_id);
266
267 // Indicates that the Media Router is interested in finding a sink with id
268 // |sink_id| that is compatible with the source urn |media_source|.
amp 2016/03/16 17:20:12 As mentioned on extension side, this makes more se
btolsch 2016/03/16 18:36:30 Done.
269 SearchProviders(string media_source, string sink_id);
266 }; 270 };
267 271
268 // Interface for a service which observes state changes across media 272 // Interface for a service which observes state changes across media
269 // sources, sinks, and issues. 273 // sources, sinks, and issues.
270 interface MediaRouter { 274 interface MediaRouter {
271 275
272 // Represents overall media sink availability states. 276 // Represents overall media sink availability states.
273 // UNAVAILABLE - No sinks are available. 277 // UNAVAILABLE - No sinks are available.
274 // PER_SOURCE - Sinks are available, but are only compatible with specific 278 // PER_SOURCE - Sinks are available, but are only compatible with specific
275 // media sources. 279 // media sources.
(...skipping 21 matching lines...) Expand all
297 301
298 // Registers a MediaRouteProvider with the MediaRouter. 302 // Registers a MediaRouteProvider with the MediaRouter.
299 // Returns a string that uniquely identifies the Media Router browser 303 // Returns a string that uniquely identifies the Media Router browser
300 // process. 304 // process.
301 RegisterMediaRouteProvider(MediaRouteProvider media_router_provider) => 305 RegisterMediaRouteProvider(MediaRouteProvider media_router_provider) =>
302 (string instance_id); 306 (string instance_id);
303 307
304 // Called when the Media Route Manager receives a new list of sinks. 308 // Called when the Media Route Manager receives a new list of sinks.
305 OnSinksReceived(string media_source, array<MediaSink> sinks); 309 OnSinksReceived(string media_source, array<MediaSink> sinks);
306 310
311 // Called when the Media Route Manager receives a new list of sinks.
amp 2016/03/16 17:20:12 Also as mentioned on the extension side change, th
btolsch 2016/03/16 18:36:30 As mentioned on the extension side, OnSinksReceive
312 OnSearchSinksReceived(string sink_id, array<MediaSink> sinks);
313
307 // Called when issues are reported for media routes. 314 // Called when issues are reported for media routes.
308 OnIssue(Issue issue); 315 OnIssue(Issue issue);
309 316
310 // Called when list of routes has been updated in the context of the 317 // Called when list of routes has been updated in the context of the
311 // calling |media_source|. The array |joinable_route_ids| should 318 // calling |media_source|. The array |joinable_route_ids| should
312 // contain route IDs of joinable routes found in the |routes| array. 319 // contain route IDs of joinable routes found in the |routes| array.
313 OnRoutesUpdated(array<MediaRoute> routes, string media_source, 320 OnRoutesUpdated(array<MediaRoute> routes, string media_source,
314 array<string> joinable_route_ids); 321 array<string> joinable_route_ids);
315 322
316 // Called when the overall availability of media sinks has been updated. 323 // Called when the overall availability of media sinks has been updated.
317 OnSinkAvailabilityUpdated(SinkAvailability availability); 324 OnSinkAvailabilityUpdated(SinkAvailability availability);
318 325
319 // Called when the state of presentation connected to route |route_id| has 326 // Called when the state of presentation connected to route |route_id| has
320 // changed to |state|. 327 // changed to |state|.
321 OnPresentationConnectionStateChanged( 328 OnPresentationConnectionStateChanged(
322 string route_id, PresentationConnectionState state); 329 string route_id, PresentationConnectionState state);
323 330
324 // Called when the presentation connected to route |route_id| has closed. 331 // Called when the presentation connected to route |route_id| has closed.
325 OnPresentationConnectionClosed( 332 OnPresentationConnectionClosed(
326 string route_id, PresentationConnectionCloseReason reason, 333 string route_id, PresentationConnectionCloseReason reason,
327 string message); 334 string message);
328 }; 335 };
329 336
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698