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

Side by Side Diff: remoting/client/ios/keychain_wrapper.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, 7 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_CLIENT_IOS_KEYCHAIN_WRAPPER_H_
6 #define REMOTING_CLIENT_IOS_KEYCHAIN_WRAPPER_H_
7
8 #import <Foundation/Foundation.h>
9
10 @class UserInfo;
11
12 // Class to abstract the details from how iOS wants to write to the keychain.
13 // TODO(nicholss): This will have to be futher refactored when we integrate
14 // with the private Google auth.
15 @interface KeychainWrapper : NSObject
16
17 // Save a refresh token to the keychain.
18 - (void)setRefreshToken:(NSString*)refreshToken;
Yuwei 2017/05/04 05:10:15 What about using @property?
nicholss 2017/05/08 17:08:10 In this case I think it is not good to use @proper
Yuwei 2017/05/08 19:00:58 Acknowledged.
19 // Get the refresh token from the keychain, if there is one.
20 - (NSString*)refreshToken;
21 // Reset the keychain and the cache.
22 - (void)resetKeychainItem;
23
24 @end
25
26 #endif // REMOTING_CLIENT_IOS_KEYCHAIN_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698