| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_CLIENT_IOS_SESSION_REMOTING_CLIENT_H_ | 5 #ifndef REMOTING_CLIENT_IOS_SESSION_REMOTING_CLIENT_H_ |
| 6 #define REMOTING_CLIENT_IOS_SESSION_REMOTING_CLIENT_H_ | 6 #define REMOTING_CLIENT_IOS_SESSION_REMOTING_CLIENT_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 #import "remoting/client/ios/display/gl_display_handler.h" |
| 11 |
| 12 #include "remoting/protocol/connection_to_host.h" |
| 13 #include "remoting/protocol/session.h" |
| 14 |
| 15 namespace remoting { |
| 16 struct ConnectToHostInfo; |
| 17 } |
| 18 |
| 8 @interface RemotingClient : NSObject | 19 @interface RemotingClient : NSObject |
| 9 | 20 |
| 10 - (void)connectToHost:(const remoting::ConnectToHostInfo&)info; | 21 - (void)connectToHost:(const remoting::ConnectToHostInfo&)info; |
| 11 | 22 |
| 12 // Mirrors the native client session delegate interface: | 23 // Mirrors the native client session delegate interface: |
| 13 | 24 |
| 14 - (void)onConnectionState:(protocol::ConnectionToHost::State)state | 25 - (void)onConnectionState:(remoting::protocol::ConnectionToHost::State)state |
| 15 error:(protocol::ErrorCode)error; | 26 error:(remoting::protocol::ErrorCode)error; |
| 16 | 27 |
| 17 - (void)commitPairingCredentialsForHost:(NSString*)host | 28 - (void)commitPairingCredentialsForHost:(NSString*)host |
| 18 id:(NSString*)id | 29 id:(NSString*)id |
| 19 secret:(NSString*)secret; | 30 secret:(NSString*)secret; |
| 20 | 31 |
| 21 - (void)fetchThirdPartyTokenForUrl:(NSString*)tokenUrl | 32 - (void)fetchThirdPartyTokenForUrl:(NSString*)tokenUrl |
| 22 clientId:(NSString*)clinetId | 33 clientId:(NSString*)clinetId |
| 23 scope:(NSString*)scope; | 34 scope:(NSString*)scope; |
| 24 | 35 |
| 25 - (void)setCapabilities:(NSString*)capabilities; | 36 - (void)setCapabilities:(NSString*)capabilities; |
| 26 | 37 |
| 27 - (void)handleExtensionMessageOfType:(NSString*)type message:(NSString*)message; | 38 - (void)handleExtensionMessageOfType:(NSString*)type message:(NSString*)message; |
| 28 | 39 |
| 40 @property(nonatomic, strong) GlDisplayHandler* displayHandler; |
| 41 |
| 29 @end | 42 @end |
| 30 | 43 |
| 31 #endif // REMOTING_CLIENT_IOS_SESSION_REMOTING_CLIENT_H_ | 44 #endif // REMOTING_CLIENT_IOS_SESSION_REMOTING_CLIENT_H_ |
| OLD | NEW |