Index: content/common/presentation/presentation_service.mojom |
diff --git a/content/common/presentation/presentation_service.mojom b/content/common/presentation/presentation_service.mojom |
index 422ae5874d4d1a572136a7dadaf5557a824e8f4d..5f0f5e442c387f2396f015f767083bac1f7e653c 100644 |
--- a/content/common/presentation/presentation_service.mojom |
+++ b/content/common/presentation/presentation_service.mojom |
@@ -90,12 +90,6 @@ interface PresentationService { |
// Called when closeSession() is called by the frame. |
CloseSession(string presentation_url, string presentation_id); |
- // Starts listening for state changes for sessions created on this frame. |
- // When state change occurs, PresentationServiceClient::OnSessionStateChanged |
- // will be invoked with the session and its new state. |
- // This is called after a presentation session is created. |
- ListenForSessionStateChange(); |
- |
// Starts listening for messages for session with |sessionInfo|. |
// Messages will be received in |
// PresentationServiceClient::OnSessionMessagesReceived. |
@@ -116,9 +110,10 @@ interface PresentationServiceClient { |
// the current known state. It will then be called to notify of state updates. |
OnScreenAvailabilityUpdated(string url, bool available); |
- // See PresentationService::ListenForSessionStateChange. |
- OnSessionStateChanged(PresentationSessionInfo sessionInfo, |
- PresentationConnectionState newState); |
+ // Called when the state of PresentationConnection |connection| started on |
+ // this frame has changed to |newState|. |
+ OnConnectionStateChanged(PresentationSessionInfo connection, |
+ PresentationConnectionState newState); |
// See PresentationService::ListenForSessionMessages. |
OnSessionMessagesReceived(PresentationSessionInfo sessionInfo, |