diff options
author | mikhail.pozdnyakov <mikhail.pozdnyakov@intel.com> | 2016-01-14 07:24:05 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-14 15:26:35 +0000 |
commit | 61a28e373720d8f205d9fc37c09580804a36b038 (patch) | |
tree | b2272bdbd457a7b8aab8491764d2cebeb6e95f46 /extensions/common | |
parent | c2103fb08d07c310047e7c4923e9caaa0ef76e35 (diff) | |
download | chromium_src-61a28e373720d8f205d9fc37c09580804a36b038.zip chromium_src-61a28e373720d8f205d9fc37c09580804a36b038.tar.gz chromium_src-61a28e373720d8f205d9fc37c09580804a36b038.tar.bz2 |
Add WiFi Display session class skeleton and mojo service
This patch introduces a WiFi Display session class
skeleton and mojo service which provides network
access for the render-hosted session.
The introduced code is compiled only if a newly added
'enable_wifi_display' build option is set.
Besides, some minor changes were applied to the
DisplaySourceConnectionDelegate interface in order
to better define its methods behavior.
BUG=242107
Review URL: https://codereview.chromium.org/1540563002
Cr-Commit-Position: refs/heads/master@{#369415}
Diffstat (limited to 'extensions/common')
-rw-r--r-- | extensions/common/mojo/wifi_display_session_service.mojom | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/extensions/common/mojo/wifi_display_session_service.mojom b/extensions/common/mojo/wifi_display_session_service.mojom new file mode 100644 index 0000000..e302256 --- /dev/null +++ b/extensions/common/mojo/wifi_display_session_service.mojom @@ -0,0 +1,35 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +module extensions; + +// WiFiDisplaySessionService class provides access to the network for +// the render-hosted Wi-Fi Display session. +interface WiFiDisplaySessionService { + SetClient(WiFiDisplaySessionServiceClient client); + + // Requires connection to a sink using the given authentication information. + Connect(int32 sink_id, int32 auth_method, string auth_data); + + // Drops the established connection to the connected sink. + Disconnect(); + + // Sends a controlling mesage to the connected sink. + SendMessage(string message); +}; + +interface WiFiDisplaySessionServiceClient { + // Notification of a successfull connection to a sink. + OnConnected(int32 sink_id, string ip_address); + + // Notification of a connection termination. + OnDisconnected(int32 sink_id); + + // Notification of an error occurred during the session. + OnError(int32 sink_id, int32 type, string description); + + // Invoked to transmit a controlling message from + // the connected sink. + OnMessage(string data); +}; |