Index: remoting/ios/facade/remoting_service.h |
diff --git a/remoting/ios/facade/remoting_service.h b/remoting/ios/facade/remoting_service.h |
index 33f9fd999104acfa3a6d701e00a973b3989038b2..120e8ce336f939f539d90749c3dd1115be1dd066 100644 |
--- a/remoting/ios/facade/remoting_service.h |
+++ b/remoting/ios/facade/remoting_service.h |
@@ -7,12 +7,10 @@ |
#import "remoting/client/chromoting_client_runtime.h" |
-#include "base/memory/weak_ptr.h" |
-#include "remoting/base/oauth_token_getter.h" |
- |
@class HostInfo; |
@class UserInfo; |
-@class RemotingAuthentication; |
+ |
+@protocol RemotingAuthentication; |
// Eventing related keys: |
@@ -30,14 +28,12 @@ extern NSString* const kUserInfo; |
@interface RemotingService : NSObject |
// Access to the singleton shared instance from this method. |
-+ (RemotingService*)SharedInstance; |
++ (RemotingService*)instance; |
// Start a request to fetch the host list. This will produce an notification on |
// |kHostsDidUpdate| when a new host is ready. |
- (void)requestHostListFetch; |
-@property(nonatomic, readonly) RemotingAuthentication* authentication; |
- |
// Returns the current host list. |
@property(nonatomic, readonly) NSArray<HostInfo*>* hosts; |
@@ -45,6 +41,10 @@ extern NSString* const kUserInfo; |
// resources used by the Chromoting clients |
@property(nonatomic, readonly) remoting::ChromotingClientRuntime* runtime; |
+// This must be set immediately after the authentication object is created. It |
+// can only be set once. |
+@property(nonatomic) id<RemotingAuthentication> authentication; |
+ |
@end |
#endif // REMOTING_IOS_FACADE_REMOTING_SERVICE_H_ |