Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(940)

Unified Diff: remoting/client/ios/domain/client_session_details.h

Issue 2846603002: Updating Pin Entry View and creating Connection Status View. (Closed)
Patch Set: Use viewWillLayoutSubviews. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/ios/domain/BUILD.gn ('k') | remoting/client/ios/domain/client_session_details.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+// The current state of the session.
+@property(nonatomic, assign) SessionState state;
+
+@end
+
+#endif // REMOTING_CLIENT_IOS_DOMAIN_CLIENT_SESSION_DETAILS_H_
« no previous file with comments | « remoting/client/ios/domain/BUILD.gn ('k') | remoting/client/ios/domain/client_session_details.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698