OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_H_ | 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_H_ |
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_H_ | 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 // A single identity used for signing in. | 10 // A single identity used for signing in. |
11 // Identity is the equivalent of an account. A user may have multiple identities | 11 // Identity is the equivalent of an account. A user may have multiple identities |
12 // or accounts associated with a single device. | 12 // or accounts associated with a single device. |
13 @interface ChromeIdentity : NSObject | 13 @interface ChromeIdentity : NSObject |
14 | 14 |
15 // Identity/account email address. This can be shown to the user, but is not a | 15 // Identity/account email address. This can be shown to the user, but is not a |
16 // unique identifier (@see gaiaID). | 16 // unique identifier (@see gaiaID). |
17 @property(nonatomic, readonly) NSString* userEmail; | 17 @property(weak, nonatomic, readonly) NSString* userEmail; |
msarda
2017/07/03 16:14:42
I think these should be strong from an API perspec
stkhapugin
2017/07/11 13:14:42
Done.
| |
18 | 18 |
19 // The unique GAIA user identifier for this identity/account. | 19 // The unique GAIA user identifier for this identity/account. |
20 // You may use this as a unique identifier to remember a particular identity. | 20 // You may use this as a unique identifier to remember a particular identity. |
21 @property(nonatomic, readonly) NSString* gaiaID; | 21 @property(weak, nonatomic, readonly) NSString* gaiaID; |
22 | 22 |
23 // Returns the full name of the identity. | 23 // Returns the full name of the identity. |
24 // Could be nil if no full name has been fetched for this account yet. | 24 // Could be nil if no full name has been fetched for this account yet. |
25 @property(nonatomic, readonly) NSString* userFullName; | 25 @property(weak, nonatomic, readonly) NSString* userFullName; |
26 | 26 |
27 // Cached Hashed Gaia ID. This is used to pass the currently signed in account | 27 // Cached Hashed Gaia ID. This is used to pass the currently signed in account |
28 // between apps. | 28 // between apps. |
29 @property(nonatomic, readonly) NSString* hashedGaiaID; | 29 @property(weak, nonatomic, readonly) NSString* hashedGaiaID; |
30 | 30 |
31 @end | 31 @end |
32 | 32 |
33 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_H_ | 33 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_H_ |
OLD | NEW |