| 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_HOST_PREFERENCES_PERSISTENCE_H_ | 5 #ifndef REMOTING_IOS_HOST_PREFERENCES_PERSISTENCE_H_ |
| 6 #define REMOTING_CLIENT_IOS_HOST_PREFERENCES_PERSISTENCE_H_ | 6 #define REMOTING_IOS_HOST_PREFERENCES_PERSISTENCE_H_ |
| 7 | 7 |
| 8 #import <CoreData/CoreData.h> | 8 #import <CoreData/CoreData.h> |
| 9 | 9 |
| 10 // Methods used to store and recall Host Prefrences on the keychain. | 10 // Methods used to store and recall Host Prefrences on the keychain. |
| 11 // Used to cache data for quicker connection to previously fetched host data. | 11 // Used to cache data for quicker connection to previously fetched host data. |
| 12 namespace remoting { | 12 namespace remoting { |
| 13 namespace ios { | 13 namespace ios { |
| 14 | 14 |
| 15 NSError* WriteHostPreferencesToKeychain(NSData* data); | 15 NSError* WriteHostPreferencesToKeychain(NSData* data); |
| 16 NSData* ReadHostPreferencesFromKeychain(); | 16 NSData* ReadHostPreferencesFromKeychain(); |
| 17 | 17 |
| 18 } // namespace ios | 18 } // namespace ios |
| 19 } // namespace remoting | 19 } // namespace remoting |
| 20 | 20 |
| 21 #endif // REMOTING_CLIENT_IOS_HOST_PREFERENCES_PERSISTENCE_H_ | 21 #endif // REMOTING_IOS_HOST_PREFERENCES_PERSISTENCE_H_ |
| OLD | NEW |