| 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 extensions; | 5 module extensions; |
| 6 | 6 |
| 7 struct WiFiDisplayMediaPacket { |
| 8 array<uint8> data; |
| 9 }; |
| 10 |
| 7 // WiFiDisplaySessionService class provides access to the network for | 11 // WiFiDisplaySessionService class provides access to the network for |
| 8 // the render-hosted Wi-Fi Display session. | 12 // the render-hosted Wi-Fi Display session. |
| 9 interface WiFiDisplaySessionService { | 13 interface WiFiDisplaySessionService { |
| 10 SetClient(WiFiDisplaySessionServiceClient client); | 14 SetClient(WiFiDisplaySessionServiceClient client); |
| 11 | 15 |
| 12 // Requires connection to a sink using the given authentication information. | 16 // Requires connection to a sink using the given authentication information. |
| 13 // Note: 'auth_method' values must correspond to 'enum AuthenticationMethod' | 17 // Note: 'auth_method' values must correspond to 'enum AuthenticationMethod' |
| 14 // from display_source.idl | 18 // from display_source.idl |
| 15 Connect(int32 sink_id, int32 auth_method, string auth_data); | 19 Connect(int32 sink_id, int32 auth_method, string auth_data); |
| 16 | 20 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 44 OnMessage(string data); | 48 OnMessage(string data); |
| 45 }; | 49 }; |
| 46 | 50 |
| 47 // This interface is used to send media stream to the | 51 // This interface is used to send media stream to the |
| 48 // connected sink. | 52 // connected sink. |
| 49 interface WiFiDisplayMediaService { | 53 interface WiFiDisplayMediaService { |
| 50 // Sets the destination point for sending media stream. | 54 // Sets the destination point for sending media stream. |
| 51 SetDesinationPoint(string ip_address, int32 port) => (bool success); | 55 SetDesinationPoint(string ip_address, int32 port) => (bool success); |
| 52 | 56 |
| 53 // Sends media packet to the destination point. | 57 // Sends media packet to the destination point. |
| 54 SendMediaPacket(array<uint8> packet); | 58 SendMediaPacket(WiFiDisplayMediaPacket packet); |
| 55 }; | 59 }; |
| OLD | NEW |