| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // TODO(crbug.com/647290): Rename "Session" to "Connection" |
| 6 |
| 5 module blink.mojom; | 7 module blink.mojom; |
| 6 | 8 |
| 7 import "url/mojo/url.mojom"; | 9 import "url/mojo/url.mojom"; |
| 8 | 10 |
| 9 struct PresentationSessionInfo { | 11 struct PresentationSessionInfo { |
| 10 url.mojom.Url url; | 12 url.mojom.Url url; |
| 11 string id; | 13 string id; |
| 12 }; | 14 }; |
| 13 | 15 |
| 14 enum PresentationConnectionState { | 16 enum PresentationConnectionState { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 OnConnectionClosed(PresentationSessionInfo connection, | 134 OnConnectionClosed(PresentationSessionInfo connection, |
| 133 PresentationConnectionCloseReason reason, | 135 PresentationConnectionCloseReason reason, |
| 134 string message); | 136 string message); |
| 135 | 137 |
| 136 // See PresentationService::ListenForSessionMessages. | 138 // See PresentationService::ListenForSessionMessages. |
| 137 OnSessionMessagesReceived(PresentationSessionInfo sessionInfo, | 139 OnSessionMessagesReceived(PresentationSessionInfo sessionInfo, |
| 138 array<SessionMessage> messages); | 140 array<SessionMessage> messages); |
| 139 | 141 |
| 140 // See PresentationService::SetDefaultPresentationURL. | 142 // See PresentationService::SetDefaultPresentationURL. |
| 141 OnDefaultSessionStarted(PresentationSessionInfo sessionInfo); | 143 OnDefaultSessionStarted(PresentationSessionInfo sessionInfo); |
| 144 |
| 145 // See PresentationService::ListeningForReceiverPageRendered. |
| 146 OnReceiverConnectionAvailable(PresentationSessionInfo sessionInfo); |
| 142 }; | 147 }; |
| OLD | NEW |