| 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 #if !defined(__has_feature) || !__has_feature(objc_arc) | 5 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 6 #error "This file requires ARC support." | 6 #error "This file requires ARC support." |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #import "remoting/client/ios/host_preferences.h" | 9 #import "remoting/ios/host_preferences.h" |
| 10 | 10 |
| 11 #import "base/logging.h" | 11 #import "base/logging.h" |
| 12 #import "remoting/client/ios/host_preferences_persistence.h" | 12 #import "remoting/ios/host_preferences_persistence.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 static NSString* const kHostPreferencesDataKeyHostDictionary = | 15 static NSString* const kHostPreferencesDataKeyHostDictionary = |
| 16 @"kHostPreferencesDataKeyHostDictionary"; | 16 @"kHostPreferencesDataKeyHostDictionary"; |
| 17 static NSString* const kHostPreferencesHostIdKey = @"HostId"; | 17 static NSString* const kHostPreferencesHostIdKey = @"HostId"; |
| 18 static NSString* const kHostPreferencesPairIdKey = @"PairId"; | 18 static NSString* const kHostPreferencesPairIdKey = @"PairId"; |
| 19 static NSString* const kHostPreferencesPairSecretKey = @"PairSecret"; | 19 static NSString* const kHostPreferencesPairSecretKey = @"PairSecret"; |
| 20 } // namespace | 20 } // namespace |
| 21 | 21 |
| 22 @interface HostPreferences () | 22 @interface HostPreferences () |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 return self; | 83 return self; |
| 84 } | 84 } |
| 85 | 85 |
| 86 - (void)encodeWithCoder:(NSCoder*)coder { | 86 - (void)encodeWithCoder:(NSCoder*)coder { |
| 87 [coder encodeObject:_hostId forKey:kHostPreferencesHostIdKey]; | 87 [coder encodeObject:_hostId forKey:kHostPreferencesHostIdKey]; |
| 88 [coder encodeObject:_pairId forKey:kHostPreferencesPairIdKey]; | 88 [coder encodeObject:_pairId forKey:kHostPreferencesPairIdKey]; |
| 89 [coder encodeObject:_pairSecret forKey:kHostPreferencesPairSecretKey]; | 89 [coder encodeObject:_pairSecret forKey:kHostPreferencesPairSecretKey]; |
| 90 } | 90 } |
| 91 | 91 |
| 92 @end | 92 @end |
| OLD | NEW |