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

Unified Diff: remoting/client/ios/session/remoting_client.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/host_info.mm ('k') | remoting/client/ios/session/remoting_client.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/ios/session/remoting_client.h
diff --git a/remoting/client/ios/session/remoting_client.h b/remoting/client/ios/session/remoting_client.h
index c6bed3804da413b774542270914b5a7071c6245a..900a346e70df716789d807519ed1b18dad3b2330 100644
--- a/remoting/client/ios/session/remoting_client.h
+++ b/remoting/client/ios/session/remoting_client.h
@@ -7,18 +7,36 @@
#import <Foundation/Foundation.h>
-#import "remoting/client/ios/display/gl_display_handler.h"
-
#include "remoting/protocol/connection_to_host.h"
-#include "remoting/protocol/session.h"
-
-namespace remoting {
-struct ConnectToHostInfo;
-}
+@class HostInfo;
+@class GlDisplayHandler;
+
+// A list of notifications that will be sent out for different types of Remoting
+// Client events.
+//
+extern NSString* const kHostSessionStatusChanged;
+extern NSString* const kHostSessionPinProvided;
+
+// List of keys in user info from events.
+extern NSString* const kSessionDetails;
+extern NSString* const kSessonStateErrorCode;
+extern NSString* const kHostSessionPin;
+
+// Remoting Client is the entry point for starting a session with a remote
+// host. This object should not be reused. Remoting Client will use the default
+// NSNotificationCenter to signal session state changes using the key
+// |kHostSessionStatusChanged|. It expects to receive an event back on
+// |kHostSessionPinProvided| when the session is asking for a PIN authenication.
@interface RemotingClient : NSObject
-- (void)connectToHost:(const remoting::ConnectToHostInfo&)info;
+// Connect to a given host.
+// |hostInfo| is all the details around a host.
+// |username| is the username to be used when connecting.
+// |accessToken| is the oAuth access token to provided to create the session.
+- (void)connectToHost:(HostInfo*)hostInfo
+ username:(NSString*)username
+ accessToken:(NSString*)accessToken;
// Mirrors the native client session delegate interface:
@@ -37,7 +55,10 @@ struct ConnectToHostInfo;
- (void)handleExtensionMessageOfType:(NSString*)type message:(NSString*)message;
+// The display handler tied to the remoting client used to display the host.
@property(nonatomic, strong) GlDisplayHandler* displayHandler;
+// The host info used to make the remoting client connection.
+@property(nonatomic, readonly) HostInfo* hostInfo;
@end
« no previous file with comments | « remoting/client/ios/domain/host_info.mm ('k') | remoting/client/ios/session/remoting_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698