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

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

Issue 1689913003: [chrome.displaySource] Simplify session error types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@display_source_session_notification
Patch Set: Created 4 years, 10 months 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 // WiFiDisplaySessionService class provides access to the network for 7 // WiFiDisplaySessionService class provides access to the network for
8 // the render-hosted Wi-Fi Display session. 8 // the render-hosted Wi-Fi Display session.
9 interface WiFiDisplaySessionService { 9 interface WiFiDisplaySessionService {
10 SetClient(WiFiDisplaySessionServiceClient client); 10 SetClient(WiFiDisplaySessionServiceClient client);
11 11
12 // Requires connection to a sink using the given authentication information. 12 // Requires connection to a sink using the given authentication information.
13 // Note: 'auth_method' values must correspond to 'enum AuthenticationMethod'
14 // from display_source.idl
13 Connect(int32 sink_id, int32 auth_method, string auth_data); 15 Connect(int32 sink_id, int32 auth_method, string auth_data);
14 16
15 // Drops the established connection to the connected sink. 17 // Drops the established connection to the connected sink.
16 Disconnect(); 18 Disconnect();
17 19
18 // Sends a controlling mesage to the connected sink. 20 // Sends a controlling mesage to the connected sink.
19 SendMessage(string message); 21 SendMessage(string message);
20 }; 22 };
21 23
22 interface WiFiDisplaySessionServiceClient { 24 interface WiFiDisplaySessionServiceClient {
23 // Notification of a successfull connection to a sink. 25 // Notification of a successfull connection to a sink.
24 OnEstablished(string ip_address); 26 OnEstablished(string ip_address);
25 27
26 // Notification of a session termination. 28 // Notification of a session termination.
27 OnTerminated(); 29 OnTerminated();
28 30
29 // Notification of an error occurred during the session. 31 // Notification of an error occurred during the session.
32 // Note: 'type' values must correspond to 'enum ErrorType'
33 // from display_source.idl
30 OnError(int32 type, string description); 34 OnError(int32 type, string description);
31 35
32 // Invoked to transmit a controlling message from 36 // Invoked to transmit a controlling message from
33 // the connected sink. 37 // the connected sink.
34 OnMessage(string data); 38 OnMessage(string data);
35 }; 39 };
OLDNEW
« extensions/common/api/display_source.idl ('K') | « extensions/common/api/display_source.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698