Index: content/common/presentation/presentation_service.mojom |
diff --git a/content/common/presentation/presentation_service.mojom b/content/common/presentation/presentation_service.mojom |
index 36756e23a080698ec63f93627b099bba23d9750e..42d2862f4de770122673c5a35374dea063eebdc2 100644 |
--- a/content/common/presentation/presentation_service.mojom |
+++ b/content/common/presentation/presentation_service.mojom |
@@ -26,6 +26,19 @@ struct PresentationError { |
string message; |
}; |
+enum PresentationMessageType { |
+ TEXT, |
+ ARRAY_BUFFER, |
+}; |
+ |
+struct MessageRequest { |
haibinlu
2015/04/24 22:13:25
can this be renamed to SessionMessage so that on-m
USE s.singapati at gmail.com
2015/04/27 19:28:56
Yes, planning to rename this. SessionMessage would
|
+ string presentation_url; |
+ string presentation_id; |
+ PresentationMessageType type; |
+ string message; |
+ array<uint8> data; |
+}; |
+ |
interface PresentationService { |
// Called when the frame sets or changes the default presentation URL or |
// presentation ID. |
@@ -74,6 +87,10 @@ interface PresentationService { |
JoinSession(string presentation_url, string? presentation_id) |
=> (PresentationSessionInfo? sessionInfo, PresentationError? error); |
+ // Called when send() is called by the frame. The result callback is |
+ // to get notified that message has been received and ready for next one. |
+ SendMessage(MessageRequest message_request) => (); |
+ |
// Called when closeSession() is called by the frame. |
CloseSession(string presentation_url, string presentation_id); |