Index: remoting/ios/domain/client_session_details.h |
diff --git a/remoting/ios/domain/client_session_details.h b/remoting/ios/domain/client_session_details.h |
index 7309892b608922cfc282e15974085d9dd3316835..ee839b85aa8b1a4cf1936f7debb4853fa4736245 100644 |
--- a/remoting/ios/domain/client_session_details.h |
+++ b/remoting/ios/domain/client_session_details.h |
@@ -22,6 +22,23 @@ typedef NS_ENUM(NSInteger, SessionState) { |
SessionClosed, |
}; |
+// Session states that map to |remoting::protocol::ConnectionToHost::Error|. |
+typedef NS_ENUM(NSInteger, SessionErrorCode) { |
+ SessionErrorOk = 0, |
+ SessionErrorPeerIsOffline, |
+ SessionErrorSessionRejected, |
+ SessionErrorIncompatibleProtocol, |
+ SessionErrorAuthenticationFailed, |
+ SessionErrorInvalidAccount, |
+ SessionErrorChannelConnectionError, |
+ SessionErrorSignalingError, |
+ SessionErrorSignalingTimeout, |
+ SessionErrorHostOverload, |
+ SessionErrorMaxSessionLength, |
+ SessionErrorHostConfigurationError, |
+ SessionErrorUnknownError, |
+}; |
+ |
// The current state of a session and data needed for session context. |
@interface ClientSessionDetails : NSObject |
@@ -29,6 +46,8 @@ typedef NS_ENUM(NSInteger, SessionState) { |
@property(nonatomic) HostInfo* hostInfo; |
// The current state of the session. |
@property(nonatomic, assign) SessionState state; |
+// The error assoiciated to the current state. |
+@property(nonatomic, assign) SessionErrorCode error; |
@end |