| 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 "net/interfaces/ip_address.mojom"; | 8 import "net/interfaces/ip_address.mojom"; |
| 9 import "url/mojo/origin.mojom"; | 9 import "url/mojo/origin.mojom"; |
| 10 import "url/mojo/url.mojom"; | 10 import "url/mojo/url.mojom"; |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 // UNAVAILABLE - No sinks are available. | 373 // UNAVAILABLE - No sinks are available. |
| 374 // PER_SOURCE - Sinks are available, but are only compatible with specific | 374 // PER_SOURCE - Sinks are available, but are only compatible with specific |
| 375 // media sources. | 375 // media sources. |
| 376 // AVAILABLE - A sink is available regardless of source. | 376 // AVAILABLE - A sink is available regardless of source. |
| 377 enum SinkAvailability { | 377 enum SinkAvailability { |
| 378 UNAVAILABLE, | 378 UNAVAILABLE, |
| 379 PER_SOURCE, | 379 PER_SOURCE, |
| 380 AVAILABLE | 380 AVAILABLE |
| 381 }; | 381 }; |
| 382 | 382 |
| 383 // Keep in sync with content/public/common/presentation_session.h. | 383 // Keep in sync with content/public/common/presentation_info.h. |
| 384 enum PresentationConnectionState { | 384 enum PresentationConnectionState { |
| 385 CONNECTING, | 385 CONNECTING, |
| 386 CONNECTED, | 386 CONNECTED, |
| 387 CLOSED, | 387 CLOSED, |
| 388 TERMINATED | 388 TERMINATED |
| 389 }; | 389 }; |
| 390 | 390 |
| 391 // Keep in sync with content/public/common/presentation_session.h. | 391 // Keep in sync with content/public/common/presentation_info.h. |
| 392 enum PresentationConnectionCloseReason { | 392 enum PresentationConnectionCloseReason { |
| 393 CONNECTION_ERROR, | 393 CONNECTION_ERROR, |
| 394 CLOSED, | 394 CLOSED, |
| 395 WENT_AWAY | 395 WENT_AWAY |
| 396 }; | 396 }; |
| 397 | 397 |
| 398 // Registers a MediaRouteProvider with the MediaRouter. | 398 // Registers a MediaRouteProvider with the MediaRouter. |
| 399 // Returns a string that uniquely identifies the Media Router browser | 399 // Returns a string that uniquely identifies the Media Router browser |
| 400 // process. | 400 // process. |
| 401 RegisterMediaRouteProvider(MediaRouteProvider media_router_provider) => | 401 RegisterMediaRouteProvider(MediaRouteProvider media_router_provider) => |
| (...skipping 29 matching lines...) Expand all Loading... |
| 431 | 431 |
| 432 // Called when the a batch of messages arrives from the media sink for the | 432 // Called when the a batch of messages arrives from the media sink for the |
| 433 // route given by |route_id|. | 433 // route given by |route_id|. |
| 434 // |StartListeningForRouteMessages| must be called first in order to receive | 434 // |StartListeningForRouteMessages| must be called first in order to receive |
| 435 // messages. | 435 // messages. |
| 436 // |route_id|: ID of route of the messages. | 436 // |route_id|: ID of route of the messages. |
| 437 // |messages|: A non-empty list of messages received. | 437 // |messages|: A non-empty list of messages received. |
| 438 OnRouteMessagesReceived(string route_id, | 438 OnRouteMessagesReceived(string route_id, |
| 439 array<RouteMessage> messages); | 439 array<RouteMessage> messages); |
| 440 }; | 440 }; |
| OLD | NEW |