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 "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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 464 string message); | 465 string message); |
| 465 | 466 |
| 466 // Called when the a batch of messages arrives from the media sink for the | 467 // Called when the a batch of messages arrives from the media sink for the |
| 467 // route given by |route_id|. | 468 // route given by |route_id|. |
| 468 // |StartListeningForRouteMessages| must be called first in order to receive | 469 // |StartListeningForRouteMessages| must be called first in order to receive |
| 469 // messages. | 470 // messages. |
| 470 // |route_id|: ID of route of the messages. | 471 // |route_id|: ID of route of the messages. |
| 471 // |messages|: A non-empty list of messages received. | 472 // |messages|: A non-empty list of messages received. |
| 472 OnRouteMessagesReceived(string route_id, | 473 OnRouteMessagesReceived(string route_id, |
| 473 array<RouteMessage> messages); | 474 array<RouteMessage> messages); |
| 475 | |
| 476 // Called when a MediaRemoter is started. | |
|
imcheng
2017/06/22 01:13:27
Could you provide a bit more info about this metho
xjz
2017/06/23 19:02:41
Done.
| |
| 477 OnMediaRemoterCreated(int32 tab_id, media.mojom.MirrorServiceRemoter remoter, | |
| 478 media.mojom.MirrorServiceRemotingSource& remoting_source); | |
| 474 }; | 479 }; |
| OLD | NEW |