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

Side by Side Diff: ios/public/provider/chrome/browser/signin/chrome_identity_interaction_manager.h

Issue 2110183006: Introduce reauthenticateUserWithID:email:callback: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better parameters name Created 4 years, 5 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
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/signin/chrome_identity_interaction_manager.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/signin/chrome_identity_interaction_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698