Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_HOST_PREFERENCES_H_ | 5 #ifndef REMOTING_CLIENT_IOS_HOST_PREFERENCES_H_ |
| 6 #define REMOTING_CLIENT_IOS_HOST_PREFERENCES_H_ | 6 #define REMOTING_CLIENT_IOS_HOST_PREFERENCES_H_ |
| 7 | 7 |
| 8 #import <CoreData/CoreData.h> | 8 #import <CoreData/CoreData.h> |
| 9 | 9 |
| 10 // A HostPreferences contains details to negotiate and maintain a connection | 10 // A HostPreferences contains details to negotiate and maintain a connection |
| 11 // to a remote Chromoting host. This is an entity in a backing store. | 11 // to a remote Chromoting host. This is an entity in a backing store. |
| 12 | 12 |
| 13 @interface HostPreferences : NSObject<NSCoding> | 13 @interface HostPreferences : NSObject<NSCoding> |
| 14 | 14 |
| 15 // Properties supplied by the host server. | 15 // Properties supplied by the host server. |
| 16 @property(nonatomic, copy) NSString* hostId; | 16 @property(nonatomic, copy) NSString* hostId; |
| 17 @property(nonatomic, copy) NSString* pairId; | 17 @property(nonatomic, copy) NSString* pairId; |
| 18 @property(nonatomic, copy) NSString* pairSecret; | 18 @property(nonatomic, copy) NSString* pairSecret; |
| 19 | 19 |
| 20 // Commit this record using the SSOKeychain | 20 // Commit the current idendity to the keychain. |
|
nicholss
2017/01/13 19:20:34
More language changing to remove SSO.
| |
| 21 // for SSOSigninManager's current identity. | 21 - (void)saveToKeychain; |
| 22 - (void)saveToSSOKeychain; | |
| 23 | 22 |
| 24 // Load a record from the SSOKeychain | 23 // Load a record from the Keychain current identity. |
| 25 // for SSOSigninManager's current identity. | |
| 26 // If a record does not exist, return a new record with a blank secret. | 24 // If a record does not exist, return a new record with a blank secret. |
| 27 + (HostPreferences*)hostForId:(NSString*)hostId; | 25 + (HostPreferences*)hostForId:(NSString*)hostId; |
| 28 | 26 |
| 29 @end | 27 @end |
| 30 | 28 |
| 31 #endif // REMOTING_CLIENT_IOS_HOST_PREFERENCES_H_ | 29 #endif // REMOTING_CLIENT_IOS_HOST_PREFERENCES_H_ |
| OLD | NEW |