| 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_FACADE_REMOTING_AUTHENTICATION_H_ | 5 #ifndef REMOTING_IOS_FACADE_REMOTING_AUTHENTICATION_H_ |
| 6 #define REMOTING_CLIENT_IOS_FACADE_REMOTING_AUTHENTICATION_H_ | 6 #define REMOTING_IOS_FACADE_REMOTING_AUTHENTICATION_H_ |
| 7 | 7 |
| 8 #import "remoting/client/chromoting_client_runtime.h" | 8 #import "remoting/client/chromoting_client_runtime.h" |
| 9 #import "remoting/client/ios/domain/user_info.h" | 9 #import "remoting/ios/domain/user_info.h" |
| 10 | 10 |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "remoting/base/oauth_token_getter.h" | 12 #include "remoting/base/oauth_token_getter.h" |
| 13 | 13 |
| 14 // |RemotingAuthenticationDelegate|s are interested in authentication related | 14 // |RemotingAuthenticationDelegate|s are interested in authentication related |
| 15 // notifications. | 15 // notifications. |
| 16 @protocol RemotingAuthenticationDelegate<NSObject> | 16 @protocol RemotingAuthenticationDelegate<NSObject> |
| 17 | 17 |
| 18 // Notifies the delegate that the user has been updated. | 18 // Notifies the delegate that the user has been updated. |
| 19 - (void)userDidUpdate:(UserInfo*)user; | 19 - (void)userDidUpdate:(UserInfo*)user; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 41 - (void)logout; | 41 - (void)logout; |
| 42 | 42 |
| 43 // Returns the currently logged in user or nil. | 43 // Returns the currently logged in user or nil. |
| 44 @property(strong, nonatomic) UserInfo* user; | 44 @property(strong, nonatomic) UserInfo* user; |
| 45 | 45 |
| 46 // Delegate recieves updates on user changes. | 46 // Delegate recieves updates on user changes. |
| 47 @property(weak, nonatomic) id<RemotingAuthenticationDelegate> delegate; | 47 @property(weak, nonatomic) id<RemotingAuthenticationDelegate> delegate; |
| 48 | 48 |
| 49 @end | 49 @end |
| 50 | 50 |
| 51 #endif // REMOTING_CLIENT_IOS_FACADE_REMOTING_AUTHENTICATION_H_ | 51 #endif // REMOTING_IOS_FACADE_REMOTING_AUTHENTICATION_H_ |
| OLD | NEW |