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

Unified Diff: remoting/ios/facade/remoting_service.h

Issue 2949713002: [CRD iOS] Refactor an interface for RemotingAuthorization (Closed)
Patch Set: Resolve feedback Created 3 years, 6 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
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_

Powered by Google App Engine
This is Rietveld 408576698