Chromium Code Reviews| 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 module media_router.mojom; | 5 module media_router.mojom; |
| 6 | 6 |
| 7 import "mojo/common/time.mojom"; | 7 import "mojo/common/time.mojom"; |
| 8 import "url/mojo/url.mojom"; | 8 import "url/mojo/url.mojom"; |
| 9 | 9 |
| 10 // Represents an output sink to which media can be routed. | 10 // Represents an output sink to which media can be routed. |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 344 // Indicates that the Media Router is interested in finding a sink that | 344 // Indicates that the Media Router is interested in finding a sink that |
| 345 // matches |search_criteria| and is compatible with the source urn | 345 // matches |search_criteria| and is compatible with the source urn |
| 346 // |media_source|. |search_criteria| should contain an exact copy of the user | 346 // |media_source|. |search_criteria| should contain an exact copy of the user |
| 347 // input. The user's current domain is also used to search. The domain is the | 347 // input. The user's current domain is also used to search. The domain is the |
| 348 // hosted domain of the user's signed-in identity, or empty if the user has no | 348 // hosted domain of the user's signed-in identity, or empty if the user has no |
| 349 // domain or is not signed in. | 349 // domain or is not signed in. |
| 350 SearchSinks(string sink_id, | 350 SearchSinks(string sink_id, |
| 351 string media_source, | 351 string media_source, |
| 352 SinkSearchCriteria search_criteria) => | 352 SinkSearchCriteria search_criteria) => |
| 353 (string sink_id); | 353 (string sink_id); |
| 354 | |
| 355 // Called when Media Router finishes sink discovery. | |
| 356 // |sinks| represents a list of sinks discovered by Media Router. | |
| 357 OnSinksDiscovered(array<MediaSink> sinks); | |
|
mark a. foltz
2017/02/10 01:23:55
It's a little tricky to distinguish this from OnSi
imcheng
2017/02/10 22:45:18
ProvideSinks sounds good. This method does not nee
zhaobin
2017/02/16 22:56:35
Done.
| |
| 354 }; | 358 }; |
| 355 | 359 |
| 356 // Interface for a service which observes state changes across media | 360 // Interface for a service which observes state changes across media |
| 357 // sources, sinks, and issues. | 361 // sources, sinks, and issues. |
| 358 interface MediaRouter { | 362 interface MediaRouter { |
| 359 | 363 |
| 360 // Represents overall media sink availability states. | 364 // Represents overall media sink availability states. |
| 361 // UNAVAILABLE - No sinks are available. | 365 // UNAVAILABLE - No sinks are available. |
| 362 // PER_SOURCE - Sinks are available, but are only compatible with specific | 366 // PER_SOURCE - Sinks are available, but are only compatible with specific |
| 363 // media sources. | 367 // media sources. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 419 | 423 |
| 420 // Called when the a batch of messages arrives from the media sink for the | 424 // Called when the a batch of messages arrives from the media sink for the |
| 421 // route given by |route_id|. | 425 // route given by |route_id|. |
| 422 // |StartListeningForRouteMessages| must be called first in order to receive | 426 // |StartListeningForRouteMessages| must be called first in order to receive |
| 423 // messages. | 427 // messages. |
| 424 // |route_id|: ID of route of the messages. | 428 // |route_id|: ID of route of the messages. |
| 425 // |messages|: A non-empty list of messages received. | 429 // |messages|: A non-empty list of messages received. |
| 426 OnRouteMessagesReceived(string route_id, | 430 OnRouteMessagesReceived(string route_id, |
| 427 array<RouteMessage> messages); | 431 array<RouteMessage> messages); |
| 428 }; | 432 }; |
| OLD | NEW |