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 "media/mojo/interfaces/mirror_service_remoting.mojom"; |
9 import "mojo/common/time.mojom"; | 10 import "mojo/common/time.mojom"; |
10 import "net/interfaces/ip_address.mojom"; | 11 import "net/interfaces/ip_address.mojom"; |
11 import "url/mojo/origin.mojom"; | 12 import "url/mojo/origin.mojom"; |
12 import "url/mojo/url.mojom"; | 13 import "url/mojo/url.mojom"; |
13 | 14 |
14 // Represents an output sink to which media can be routed. | 15 // Represents an output sink to which media can be routed. |
15 struct MediaSink { | 16 struct MediaSink { |
16 enum IconType { | 17 enum IconType { |
17 CAST, | 18 CAST, |
18 CAST_AUDIO, | 19 CAST_AUDIO, |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 string message); | 468 string message); |
468 | 469 |
469 // Called when the a batch of messages arrives from the media sink for the | 470 // Called when the a batch of messages arrives from the media sink for the |
470 // route given by |route_id|. | 471 // route given by |route_id|. |
471 // |StartListeningForRouteMessages| must be called first in order to receive | 472 // |StartListeningForRouteMessages| must be called first in order to receive |
472 // messages. | 473 // messages. |
473 // |route_id|: ID of route of the messages. | 474 // |route_id|: ID of route of the messages. |
474 // |messages|: A non-empty list of messages received. | 475 // |messages|: A non-empty list of messages received. |
475 OnRouteMessagesReceived(string route_id, | 476 OnRouteMessagesReceived(string route_id, |
476 array<RouteMessage> messages); | 477 array<RouteMessage> messages); |
| 478 |
| 479 // Called when a MediaRemoter for a tab with |tab_id| is started. |remoter| |
| 480 // can be used to access the MediaRemoter to control a media remoting session |
| 481 // and send RPC messages to the remote device. |remoting_source| is bound to |
| 482 // receive the updates/messages from MediaRemoter. |
| 483 OnMediaRemoterCreated(int32 tab_id, media.mojom.MirrorServiceRemoter remoter, |
| 484 media.mojom.MirrorServiceRemotingSource& remoting_source); |
477 }; | 485 }; |
OLD | NEW |