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

Unified Diff: extensions/common/mojo/wifi_display_session_service.mojom

Issue 1540563002: [chrome.displaySource] Add WiFi Display session class skeleton and mojo service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/mojo/service_registration.cc ('k') | extensions/extensions.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/mojo/wifi_display_session_service.mojom
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 0000000000000000000000000000000000000000..e30225677dee67d48f78568f1da088b0c583e15f
--- /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);
+};
« no previous file with comments | « extensions/browser/mojo/service_registration.cc ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698