| 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.interfaces; | 5 module media_router.interfaces; |
| 6 | 6 |
| 7 // Represents an output sink to which media can be routed. | 7 // Represents an output sink to which media can be routed. |
| 8 struct MediaSink { | 8 struct MediaSink { |
| 9 enum IconType { | 9 enum IconType { |
| 10 CAST, | 10 CAST, |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 // Called when there are no more listeners for messages for |route_id|. | 257 // Called when there are no more listeners for messages for |route_id|. |
| 258 // Calling this will resolve the pending |ListenForRouteMessages| callback | 258 // Calling this will resolve the pending |ListenForRouteMessages| callback |
| 259 // with an empty list. | 259 // with an empty list. |
| 260 StopListeningForRouteMessages(string route_id); | 260 StopListeningForRouteMessages(string route_id); |
| 261 | 261 |
| 262 // Indicates that a PresentationConnection that was connected to route | 262 // Indicates that a PresentationConnection that was connected to route |
| 263 // |route_id| has been closed (via .close(), garbage collection or | 263 // |route_id| has been closed (via .close(), garbage collection or |
| 264 // navigation). | 264 // navigation). |
| 265 DetachRoute(string route_id); | 265 DetachRoute(string route_id); |
| 266 |
| 267 // Enables mDNS discovery. No-op if mDNS discovery is already enabled. |
| 268 // Calling this will trigger a firewall prompt on Windows if there is not |
| 269 // already a firewall rule for mDNS. |
| 270 EnableMdnsDiscovery(); |
| 266 }; | 271 }; |
| 267 | 272 |
| 268 // Interface for a service which observes state changes across media | 273 // Interface for a service which observes state changes across media |
| 269 // sources, sinks, and issues. | 274 // sources, sinks, and issues. |
| 270 interface MediaRouter { | 275 interface MediaRouter { |
| 271 | 276 |
| 272 // Represents overall media sink availability states. | 277 // Represents overall media sink availability states. |
| 273 // UNAVAILABLE - No sinks are available. | 278 // UNAVAILABLE - No sinks are available. |
| 274 // PER_SOURCE - Sinks are available, but are only compatible with specific | 279 // PER_SOURCE - Sinks are available, but are only compatible with specific |
| 275 // media sources. | 280 // media sources. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 // changed to |state|. | 328 // changed to |state|. |
| 324 OnPresentationConnectionStateChanged( | 329 OnPresentationConnectionStateChanged( |
| 325 string route_id, PresentationConnectionState state); | 330 string route_id, PresentationConnectionState state); |
| 326 | 331 |
| 327 // Called when the presentation connected to route |route_id| has closed. | 332 // Called when the presentation connected to route |route_id| has closed. |
| 328 OnPresentationConnectionClosed( | 333 OnPresentationConnectionClosed( |
| 329 string route_id, PresentationConnectionCloseReason reason, | 334 string route_id, PresentationConnectionCloseReason reason, |
| 330 string message); | 335 string message); |
| 331 }; | 336 }; |
| 332 | 337 |
| OLD | NEW |