| 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/browser/media/router/mojo/media_controller.mojom"; | 7 import "chrome/common/media_router/mojo/media_controller.mojom"; |
| 8 import "chrome/browser/media/router/mojo/media_status.mojom"; | 8 import "chrome/common/media_router/mojo/media_status.mojom"; |
| 9 import "mojo/common/time.mojom"; | 9 import "mojo/common/time.mojom"; |
| 10 import "net/interfaces/ip_address.mojom"; | 10 import "net/interfaces/ip_address.mojom"; |
| 11 import "url/mojo/origin.mojom"; | 11 import "url/mojo/origin.mojom"; |
| 12 import "url/mojo/url.mojom"; | 12 import "url/mojo/url.mojom"; |
| 13 | 13 |
| 14 // Represents an output sink to which media can be routed. | 14 // Represents an output sink to which media can be routed. |
| 15 struct MediaSink { | 15 struct MediaSink { |
| 16 enum IconType { | 16 enum IconType { |
| 17 CAST, | 17 CAST, |
| 18 CAST_AUDIO, | 18 CAST_AUDIO, |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 | 455 |
| 456 // Called when the a batch of messages arrives from the media sink for the | 456 // Called when the a batch of messages arrives from the media sink for the |
| 457 // route given by |route_id|. | 457 // route given by |route_id|. |
| 458 // |StartListeningForRouteMessages| must be called first in order to receive | 458 // |StartListeningForRouteMessages| must be called first in order to receive |
| 459 // messages. | 459 // messages. |
| 460 // |route_id|: ID of route of the messages. | 460 // |route_id|: ID of route of the messages. |
| 461 // |messages|: A non-empty list of messages received. | 461 // |messages|: A non-empty list of messages received. |
| 462 OnRouteMessagesReceived(string route_id, | 462 OnRouteMessagesReceived(string route_id, |
| 463 array<RouteMessage> messages); | 463 array<RouteMessage> messages); |
| 464 }; | 464 }; |
| OLD | NEW |