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

Unified Diff: remoting/client/ios/domain/user_info.h

Issue 2854273002: [CRD iOS] Implementing save to keychain and user defaults for login info. Refactor remoting service. (Closed)
Patch Set: Cleanup on self review. Created 3 years, 8 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/domain/user_info.h
diff --git a/remoting/client/ios/domain/user_info.h b/remoting/client/ios/domain/user_info.h
index 5bbae710ff5aede3b7c499df3ebadfb79fe93b1c..8c463317839959a8ad2282d65446236e4c0e56e6 100644
--- a/remoting/client/ios/domain/user_info.h
+++ b/remoting/client/ios/domain/user_info.h
@@ -14,9 +14,15 @@
@property(nonatomic, copy) NSString* userId;
@property(nonatomic, copy) NSString* userFullName;
@property(nonatomic, copy) NSString* userEmail;
+@property(nonatomic, copy) NSString* refreshToken;
+// Convert a json blob into a |UserInfo| object. Most useful for test.
+// TODO(nicholss): Might move this out into a catagory.
+ (UserInfo*)parseListFromJSON:(NSMutableData*)data;
+// This returns the authenticated state of the this user info object.
+- (BOOL)isAuthenticated;
+// Compare two |UserInfo| objects.
- (NSComparisonResult)compare:(UserInfo*)user;
@end

Powered by Google App Engine
This is Rietveld 408576698