Chromium Code Reviews| Index: content/common/presentation/presentation_service.mojom |
| diff --git a/content/common/presentation/presentation_service.mojom b/content/common/presentation/presentation_service.mojom |
| index 91da501913f3637a7f6912d88b5151b2f72489eb..da817ddfc837fac6e1ff9740dfb0440a2559b280 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 SessionMessage { |
| + 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. |
|
whywhat
2015/04/30 15:50:58
nits:
s/message/the message
s/and/and the service
USE s.singapati at gmail.com
2015/05/04 16:40:28
Done.
|
| + SendMessage(SessionMessage message_request) => (bool success); |
| + |
| // Called when closeSession() is called by the frame. |
| CloseSession(string presentation_url, string presentation_id); |