Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: extensions/common/mojo/wifi_display_session_service.mojom

Issue 2508153002: [chrome.displaySource] Switch mojom targets to use STL types. (Closed)
Patch Set: OWNERS Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « extensions/common/mojo/OWNERS ('k') | extensions/renderer/api/display_source/wifi_display/wifi_display_media_pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698