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

Unified Diff: remoting/client/ios/host_preferences.h

Issue 2628403002: Migrating host preferences, runtime, and gestures to chromium from internal. (Closed)
Patch Set: Created 3 years, 11 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/client/ios/host_preferences.h
diff --git a/remoting/client/ios/host_preferences.h b/remoting/client/ios/host_preferences.h
index 6fb19a0a1276bd8d7299e935dd18a9506854e329..951bb796002576a87b2f1ae7153aeb4af4cd4743 100644
--- a/remoting/client/ios/host_preferences.h
+++ b/remoting/client/ios/host_preferences.h
@@ -7,6 +7,14 @@
#import <CoreData/CoreData.h>
+namespace remoting {
+namespace ios {
+
+NSError* writeHostPreferencesToKeychain(NSData*);
Sergey Ulanov 2017/01/18 22:20:35 The name suggests that this function stores prefer
Sergey Ulanov 2017/01/18 22:20:35 Should this be WriteHostPreferencesToKeychain() wi
Sergey Ulanov 2017/01/18 22:20:35 nit: add argument name
nicholss 2017/01/18 23:21:50 A single host is not implied, it is managing the o
+NSData* readHostPreferencesFromKeychain();
+}
Sergey Ulanov 2017/01/18 22:20:35 nit: add empty line
Sergey Ulanov 2017/01/18 22:20:35 } // namespace ios } // namespace remoting
nicholss 2017/01/18 23:21:50 Done.
nicholss 2017/01/18 23:21:50 Done.
+}
+
// A HostPreferences contains details to negotiate and maintain a connection
// to a remote Chromoting host. This is an entity in a backing store.
@@ -17,12 +25,10 @@
@property(nonatomic, copy) NSString* pairId;
@property(nonatomic, copy) NSString* pairSecret;
-// Commit this record using the SSOKeychain
-// for SSOSigninManager's current identity.
-- (void)saveToSSOKeychain;
+// Commit this record using the Keychain for current identity.
+- (void)saveToKeychain;
-// Load a record from the SSOKeychain
-// for SSOSigninManager's current identity.
+// Load a record from the Keychain for current identity.
// If a record does not exist, return a new record with a blank secret.
+ (HostPreferences*)hostForId:(NSString*)hostId;

Powered by Google App Engine
This is Rietveld 408576698