| Index: third_party/WebKit/public/platform/modules/presentation/presentation.mojom
|
| diff --git a/third_party/WebKit/public/platform/modules/presentation/presentation.mojom b/third_party/WebKit/public/platform/modules/presentation/presentation.mojom
|
| index 0427db2c60e7d0709b13a1b4b2bbbeea73563084..2cec650cc8a4d2cd02740072b4f42795bba9ec26 100644
|
| --- a/third_party/WebKit/public/platform/modules/presentation/presentation.mojom
|
| +++ b/third_party/WebKit/public/platform/modules/presentation/presentation.mojom
|
| @@ -52,6 +52,16 @@ struct SessionMessage {
|
| array<uint8>? data;
|
| };
|
|
|
| +interface PresentationConnection {
|
| + // Called to set the PresentationConnection interface that sends
|
| + // messages in the opposite direction.
|
| + SetTargetConnection(PresentationConnection connection);
|
| +
|
| + // Called when connection.send() is invoked at the other end of the
|
| + // connection.
|
| + OnSessionMessageReceived(SessionMessage message);
|
| +};
|
| +
|
| interface PresentationService {
|
| // Sets the PresentationServiceClient.
|
| SetClient(PresentationServiceClient client);
|
| @@ -109,6 +119,9 @@ interface PresentationService {
|
| // PresentationServiceClient::OnSessionMessagesReceived.
|
| // This is called after a presentation session is created.
|
| ListenForSessionMessages(PresentationSessionInfo sessionInfo);
|
| +
|
| + SetPresentationConnection(PresentationSessionInfo sessionInfo,
|
| + PresentationConnection connection);
|
| };
|
|
|
| interface PresentationServiceClient {
|
| @@ -143,5 +156,6 @@ interface PresentationServiceClient {
|
| OnDefaultSessionStarted(PresentationSessionInfo sessionInfo);
|
|
|
| // See PresentationService::ListeningForReceiverPageRendered.
|
| - OnReceiverConnectionAvailable(PresentationSessionInfo sessionInfo);
|
| + OnReceiverConnectionAvailable(PresentationSessionInfo sessionInfo,
|
| + PresentationConnection connection);
|
| };
|
|
|