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 "chrome/common/media_router/mojo/media_controller.mojom"; | 7 import "chrome/common/media_router/mojo/media_controller.mojom"; |
| 8 import "chrome/common/media_router/mojo/media_status.mojom"; | 8 import "chrome/common/media_router/mojo/media_status.mojom"; |
| 9 import "mojo/common/time.mojom"; | 9 import "mojo/common/time.mojom"; |
| 10 import "net/interfaces/ip_address.mojom"; | 10 import "net/interfaces/ip_address.mojom"; |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 416 enum PresentationConnectionCloseReason { | 416 enum PresentationConnectionCloseReason { |
| 417 CONNECTION_ERROR, | 417 CONNECTION_ERROR, |
| 418 CLOSED, | 418 CLOSED, |
| 419 WENT_AWAY | 419 WENT_AWAY |
| 420 }; | 420 }; |
| 421 | 421 |
| 422 // Registers a MediaRouteProvider with the MediaRouter. | 422 // Registers a MediaRouteProvider with the MediaRouter. |
| 423 // Returns a string that uniquely identifies the Media Router browser | 423 // Returns a string that uniquely identifies the Media Router browser |
| 424 // process. | 424 // process. |
| 425 RegisterMediaRouteProvider(MediaRouteProvider media_router_provider) => | 425 RegisterMediaRouteProvider(MediaRouteProvider media_router_provider) => |
| 426 (string instance_id); | 426 (string instance_id, bool enable_browser_side_discovery); |
|
mark a. foltz
2017/04/26 23:52:56
As I mentioned elsewhere passing a mojo struct lik
zhaobin
2017/05/03 01:53:59
Done.
| |
| 427 | 427 |
| 428 // Called when the Media Route Manager receives a new list of |sinks| | 428 // Called when the Media Route Manager receives a new list of |sinks| |
| 429 // compatible with |media_source|. The result is only valid for |origins|. If | 429 // compatible with |media_source|. The result is only valid for |origins|. If |
| 430 // |origins| is empty, the result is valid for any origin. | 430 // |origins| is empty, the result is valid for any origin. |
| 431 OnSinksReceived(string media_source, array<MediaSink> sinks, | 431 OnSinksReceived(string media_source, array<MediaSink> sinks, |
| 432 array<url.mojom.Origin> origins); | 432 array<url.mojom.Origin> origins); |
| 433 | 433 |
| 434 // Called when issues are reported for media routes. | 434 // Called when issues are reported for media routes. |
| 435 OnIssue(Issue issue); | 435 OnIssue(Issue issue); |
| 436 | 436 |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 455 | 455 |
| 456 // Called when the a batch of messages arrives from the media sink for the | 456 // Called when the a batch of messages arrives from the media sink for the |
| 457 // route given by |route_id|. | 457 // route given by |route_id|. |
| 458 // |StartListeningForRouteMessages| must be called first in order to receive | 458 // |StartListeningForRouteMessages| must be called first in order to receive |
| 459 // messages. | 459 // messages. |
| 460 // |route_id|: ID of route of the messages. | 460 // |route_id|: ID of route of the messages. |
| 461 // |messages|: A non-empty list of messages received. | 461 // |messages|: A non-empty list of messages received. |
| 462 OnRouteMessagesReceived(string route_id, | 462 OnRouteMessagesReceived(string route_id, |
| 463 array<RouteMessage> messages); | 463 array<RouteMessage> messages); |
| 464 }; | 464 }; |
| OLD | NEW |