OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_INTERACTION_MA
NAGER_H_ | 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_INTERACTION_MA
NAGER_H_ |
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_INTERACTION_MA
NAGER_H_ | 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_INTERACTION_MA
NAGER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #import "base/ios/block_types.h" | 10 #import "base/ios/block_types.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // CHROME_IDENTITY_OPERATION_ONGOING error if there is already another add | 43 // CHROME_IDENTITY_OPERATION_ONGOING error if there is already another add |
44 // account or reauthenticate operation ongoing. | 44 // account or reauthenticate operation ongoing. |
45 // * |completion| will be called once the operation has finished. | 45 // * |completion| will be called once the operation has finished. |
46 - (void)addAccountWithCompletion:(SigninCompletionCallback)completion; | 46 - (void)addAccountWithCompletion:(SigninCompletionCallback)completion; |
47 | 47 |
48 // Starts the reauthentication operation for a user. Presents user with the | 48 // Starts the reauthentication operation for a user. Presents user with the |
49 // screen to enter credentials with the email pre-entered. | 49 // screen to enter credentials with the email pre-entered. |
50 // Note: Calling this method will fail and the completion will be called with a | 50 // Note: Calling this method will fail and the completion will be called with a |
51 // CHROME_IDENTITY_OPERATION_ONGOING error if there is already another add | 51 // CHROME_IDENTITY_OPERATION_ONGOING error if there is already another add |
52 // account or reauthenticate operation ongoing. | 52 // account or reauthenticate operation ongoing. |
| 53 // * |userID| is the unique identifier of the user. |
| 54 // * |userEmail| will be pre-entered on the presented screen. |
| 55 // * |completion| will be called once the operation has finished. |
| 56 - (void)reauthenticateUserWithID:(NSString*)userID |
| 57 email:(NSString*)userEmail |
| 58 completion:(SigninCompletionCallback)completion; |
| 59 |
| 60 // Starts the reauthentication operation for a user. Presents user with the |
| 61 // screen to enter credentials with the email pre-entered. |
| 62 // Note: Calling this method will fail and the completion will be called with a |
| 63 // CHROME_IDENTITY_OPERATION_ONGOING error if there is already another add |
| 64 // account or reauthenticate operation ongoing. |
53 // * |email| will be pre-entered on the presented screen. | 65 // * |email| will be pre-entered on the presented screen. |
54 // * |completion| will be called once the operation has finished. | 66 // * |completion| will be called once the operation has finished. |
55 - (void)reauthenticateUserWithEmail:(NSString*)email | 67 - (void)reauthenticateUserWithEmail:(NSString*)email |
56 completion:(SigninCompletionCallback)completion; | 68 completion:(SigninCompletionCallback)completion; |
57 | 69 |
58 // Cancels and dismisses any currently active operation. Completion will be | 70 // Cancels and dismisses any currently active operation. Completion will be |
59 // called with a cancel error. | 71 // called with a cancel error. |
60 // * |animated| represents whether the UI should be dismissed with an animation. | 72 // * |animated| represents whether the UI should be dismissed with an animation. |
61 - (void)cancelAndDismissAnimated:(BOOL)animated; | 73 - (void)cancelAndDismissAnimated:(BOOL)animated; |
62 | 74 |
(...skipping 22 matching lines...) Expand all Loading... |
85 // animation. | 97 // animation. |
86 // * |completion| is the completion block to call once the dismissal operation | 98 // * |completion| is the completion block to call once the dismissal operation |
87 // is finished. | 99 // is finished. |
88 - (void)interactionManager:(ChromeIdentityInteractionManager*)interactionManager | 100 - (void)interactionManager:(ChromeIdentityInteractionManager*)interactionManager |
89 dismissViewControllerAnimated:(BOOL)animated | 101 dismissViewControllerAnimated:(BOOL)animated |
90 completion:(ProceduralBlock)completion; | 102 completion:(ProceduralBlock)completion; |
91 | 103 |
92 @end | 104 @end |
93 | 105 |
94 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_INTERACTION
_MANAGER_H_ | 106 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_INTERACTION
_MANAGER_H_ |
OLD | NEW |