| 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 module presentation; | 5 module presentation; |
| 6 | 6 |
| 7 struct PresentationSessionInfo { | 7 struct PresentationSessionInfo { |
| 8 string url; | 8 string url; |
| 9 string id; | 9 string id; |
| 10 }; | 10 }; |
| 11 | 11 |
| 12 enum PresentationConnectionState { | 12 enum PresentationConnectionState { |
| 13 CONNECTING, |
| 13 CONNECTED, | 14 CONNECTED, |
| 14 CLOSED, | 15 CLOSED, |
| 15 TERMINATED | 16 TERMINATED |
| 16 }; | 17 }; |
| 17 | 18 |
| 18 enum PresentationErrorType { | 19 enum PresentationErrorType { |
| 19 NO_AVAILABLE_SCREENS, | 20 NO_AVAILABLE_SCREENS, |
| 20 SESSION_REQUEST_CANCELLED, | 21 SESSION_REQUEST_CANCELLED, |
| 21 NO_PRESENTATION_FOUND, | 22 NO_PRESENTATION_FOUND, |
| 22 UNKNOWN, | 23 UNKNOWN, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 OnConnectionStateChanged(PresentationSessionInfo connection, | 119 OnConnectionStateChanged(PresentationSessionInfo connection, |
| 119 PresentationConnectionState newState); | 120 PresentationConnectionState newState); |
| 120 | 121 |
| 121 // See PresentationService::ListenForSessionMessages. | 122 // See PresentationService::ListenForSessionMessages. |
| 122 OnSessionMessagesReceived(PresentationSessionInfo sessionInfo, | 123 OnSessionMessagesReceived(PresentationSessionInfo sessionInfo, |
| 123 array<SessionMessage> messages); | 124 array<SessionMessage> messages); |
| 124 | 125 |
| 125 // See PresentationService::SetDefaultPresentationURL. | 126 // See PresentationService::SetDefaultPresentationURL. |
| 126 OnDefaultSessionStarted(PresentationSessionInfo sessionInfo); | 127 OnDefaultSessionStarted(PresentationSessionInfo sessionInfo); |
| 127 }; | 128 }; |
| OLD | NEW |