Chromium Code Reviews| Index: remoting/client/ios/domain/client_session_details.h |
| diff --git a/remoting/client/ios/domain/client_session_details.h b/remoting/client/ios/domain/client_session_details.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..349987de1451e5705f3730d5d6aedb178d4fdd55 |
| --- /dev/null |
| +++ b/remoting/client/ios/domain/client_session_details.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef REMOTING_CLIENT_IOS_DOMAIN_CLIENT_SESSION_DETAILS_H_ |
| +#define REMOTING_CLIENT_IOS_DOMAIN_CLIENT_SESSION_DETAILS_H_ |
| + |
| +#import <Foundation/Foundation.h> |
| + |
| +@class HostInfo; |
| + |
| +// Session states that map to |remoting::protocol::ConnectionToHost::State| with |
| +// the added state of PinPrompt. This can be used to track the state of the |
| +// session for the duration of the connection. |
| +typedef NS_ENUM(NSInteger, SessionState) { |
| + SessionInitializing, |
| + SessionConnecting, |
| + SessionPinPrompt, |
| + SessionAuthenticated, |
| + SessionConnected, |
| + SessionFailed, |
| + SessionClosed, |
| +}; |
| + |
| +// The current state of a session and data needed for session context. |
| +@interface ClientSessionDetails : NSObject |
| + |
| +// This is the object that describes the host this session is centered around. |
| +@property(nonatomic) HostInfo* hostInfo; |
|
Yuwei
2017/05/01 23:01:15
Looks like HostInfo is a C++ struct so the propert
nicholss
2017/05/02 16:39:40
No, HostInfo is a class that just has some data. S
Yuwei
2017/05/02 18:24:44
Gotcha. Then that's fine. I think I got confused b
|
| +// The current state of the session. |
| +@property(nonatomic, assign) SessionState state; |
| + |
| +@end |
| + |
| +#endif // REMOTING_CLIENT_IOS_DOMAIN_CLIENT_SESSION_DETAILS_H_ |