summaryrefslogtreecommitdiff
path: root/chromium/content/common/presentation/presentation_service.mojom
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/common/presentation/presentation_service.mojom')
-rw-r--r--chromium/content/common/presentation/presentation_service.mojom14
1 files changed, 13 insertions, 1 deletions
diff --git a/chromium/content/common/presentation/presentation_service.mojom b/chromium/content/common/presentation/presentation_service.mojom
index ae39815ccce..2c470a52ed3 100644
--- a/chromium/content/common/presentation/presentation_service.mojom
+++ b/chromium/content/common/presentation/presentation_service.mojom
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-module presentation;
+module content.mojom;
struct PresentationSessionInfo {
string url;
@@ -16,6 +16,12 @@ enum PresentationConnectionState {
TERMINATED
};
+enum PresentationConnectionCloseReason {
+ CONNECTION_ERROR,
+ CLOSED,
+ WENT_AWAY
+};
+
enum PresentationErrorType {
NO_AVAILABLE_SCREENS,
SESSION_REQUEST_CANCELLED,
@@ -119,6 +125,12 @@ interface PresentationServiceClient {
OnConnectionStateChanged(PresentationSessionInfo connection,
PresentationConnectionState newState);
+ // Caled when the state of |connection| started on this frame has changed to
+ // CLOSED.
+ OnConnectionClosed(PresentationSessionInfo connection,
+ PresentationConnectionCloseReason reason,
+ string message);
+
// See PresentationService::ListenForSessionMessages.
OnSessionMessagesReceived(PresentationSessionInfo sessionInfo,
array<SessionMessage> messages);