Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_CLIENT_IOS_DOMAIN_CLIENT_SESSION_DETAILS_H_ | |
| 6 #define REMOTING_CLIENT_IOS_DOMAIN_CLIENT_SESSION_DETAILS_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 @class HostInfo; | |
| 11 | |
| 12 // Session states that map to |remoting::protocol::ConnectionToHost::State| with | |
| 13 // the added state of PinPrompt. This can be used to track the state of the | |
| 14 // session for the duration of the connection. | |
| 15 typedef NS_ENUM(NSInteger, SessionState) { | |
| 16 SessionInitializing, | |
| 17 SessionConnecting, | |
| 18 SessionPinPrompt, | |
| 19 SessionAuthenticated, | |
| 20 SessionConnected, | |
| 21 SessionFailed, | |
| 22 SessionClosed, | |
| 23 }; | |
| 24 | |
| 25 // The current state of a session and data needed for session context. | |
| 26 @interface ClientSessionDetails : NSObject | |
| 27 | |
| 28 // This is the object that describes the host this session is centered around. | |
| 29 @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
| |
| 30 // The current state of the session. | |
| 31 @property(nonatomic, assign) SessionState state; | |
| 32 | |
| 33 @end | |
| 34 | |
| 35 #endif // REMOTING_CLIENT_IOS_DOMAIN_CLIENT_SESSION_DETAILS_H_ | |
| OLD | NEW |