Index: ios/chrome/browser/ui/authentication/authentication_flow_performer_delegate.h |
diff --git a/ios/chrome/browser/ui/authentication/authentication_flow_performer_delegate.h b/ios/chrome/browser/ui/authentication/authentication_flow_performer_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2250920e8b39f92ed89ca455b3a3d1a154708eb7 |
--- /dev/null |
+++ b/ios/chrome/browser/ui/authentication/authentication_flow_performer_delegate.h |
@@ -0,0 +1,46 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef IOS_CHROME_BROWSER_UI_AUTHENTICATION_AUTHENTICATION_FLOW_PERFORMER_DELEGATE_H_ |
+#define IOS_CHROME_BROWSER_UI_AUTHENTICATION_AUTHENTICATION_FLOW_PERFORMER_DELEGATE_H_ |
+ |
+#import <Foundation/Foundation.h> |
+ |
+#include "ios/chrome/browser/signin/constants.h" |
+ |
+@class UIViewController; |
+ |
+// Handles completion of AuthenticationFlowPerformer steps. |
+@protocol AuthenticationFlowPerformerDelegate<NSObject> |
+ |
+// Indicates that a browser state was signed out. |
+- (void)didSignOut; |
+ |
+// Indicates that the user chose the clear data policy. |
+- (void)didChooseClearDataPolicy:(ShouldClearData)shouldClearData; |
+ |
+// Indicates that the user chose to cancel the operation. |
+- (void)didChooseCancel; |
+ |
+// Indicates that browsing data finished clearing. |
+- (void)didClearData; |
+ |
+// Indicates that the identity managed status was fetched. |
+- (void)didFetchManagedStatus:(NSString*)hostedDomain; |
+ |
+// Indicates that the requested identity managed status fetch failed. |
+- (void)didFailFetchManagedStatus:(NSError*)error; |
+ |
+// Indicates that the user accepted signing in to a managed account. |
+- (void)didAcceptManagedConfirmation; |
+ |
+// Indicates that the user cancelled signing in to a managed account. |
+- (void)didCancelManagedConfirmation; |
+ |
+// The view controller that is showing the sign-in flow. |
+@property(readonly) UIViewController* presentingViewController; |
+ |
+@end |
+ |
+#endif // IOS_CHROME_BROWSER_UI_AUTHENTICATION_AUTHENTICATION_FLOW_PERFORMER_DELEGATE_H_ |