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

Unified Diff: ios/chrome/browser/ui/authentication/authentication_flow_performer_delegate.h

Issue 2586993002: Upstream Chrome on iOS source code [3/11]. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698