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