| 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/origin.mojom"; | 8 import "url/mojo/origin.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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 // UNAVAILABLE - No sinks are available. | 332 // UNAVAILABLE - No sinks are available. |
| 333 // PER_SOURCE - Sinks are available, but are only compatible with specific | 333 // PER_SOURCE - Sinks are available, but are only compatible with specific |
| 334 // media sources. | 334 // media sources. |
| 335 // AVAILABLE - A sink is available regardless of source. | 335 // AVAILABLE - A sink is available regardless of source. |
| 336 enum SinkAvailability { | 336 enum SinkAvailability { |
| 337 UNAVAILABLE, | 337 UNAVAILABLE, |
| 338 PER_SOURCE, | 338 PER_SOURCE, |
| 339 AVAILABLE | 339 AVAILABLE |
| 340 }; | 340 }; |
| 341 | 341 |
| 342 // Keep in sync with content/public/common/presentation_session.h. | 342 // Keep in sync with content/public/common/presentation_info.h. |
| 343 enum PresentationConnectionState { | 343 enum PresentationConnectionState { |
| 344 CONNECTING, | 344 CONNECTING, |
| 345 CONNECTED, | 345 CONNECTED, |
| 346 CLOSED, | 346 CLOSED, |
| 347 TERMINATED | 347 TERMINATED |
| 348 }; | 348 }; |
| 349 | 349 |
| 350 // Keep in sync with content/public/common/presentation_session.h. | 350 // Keep in sync with content/public/common/presentation_info.h. |
| 351 enum PresentationConnectionCloseReason { | 351 enum PresentationConnectionCloseReason { |
| 352 CONNECTION_ERROR, | 352 CONNECTION_ERROR, |
| 353 CLOSED, | 353 CLOSED, |
| 354 WENT_AWAY | 354 WENT_AWAY |
| 355 }; | 355 }; |
| 356 | 356 |
| 357 // Registers a MediaRouteProvider with the MediaRouter. | 357 // Registers a MediaRouteProvider with the MediaRouter. |
| 358 // Returns a string that uniquely identifies the Media Router browser | 358 // Returns a string that uniquely identifies the Media Router browser |
| 359 // process. | 359 // process. |
| 360 RegisterMediaRouteProvider(MediaRouteProvider media_router_provider) => | 360 RegisterMediaRouteProvider(MediaRouteProvider media_router_provider) => |
| (...skipping 29 matching lines...) Expand all Loading... |
| 390 | 390 |
| 391 // Called when the a batch of messages arrives from the media sink for the | 391 // Called when the a batch of messages arrives from the media sink for the |
| 392 // route given by |route_id|. | 392 // route given by |route_id|. |
| 393 // |StartListeningForRouteMessages| must be called first in order to receive | 393 // |StartListeningForRouteMessages| must be called first in order to receive |
| 394 // messages. | 394 // messages. |
| 395 // |route_id|: ID of route of the messages. | 395 // |route_id|: ID of route of the messages. |
| 396 // |messages|: A non-empty list of messages received. | 396 // |messages|: A non-empty list of messages received. |
| 397 OnRouteMessagesReceived(string route_id, | 397 OnRouteMessagesReceived(string route_id, |
| 398 array<RouteMessage> messages); | 398 array<RouteMessage> messages); |
| 399 }; | 399 }; |
| OLD | NEW |