Index: ios/chrome/app/safe_mode/safe_mode_coordinator.h |
diff --git a/ios/chrome/app/safe_mode/safe_mode_coordinator.h b/ios/chrome/app/safe_mode/safe_mode_coordinator.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bf5717337046ee3b776118e8c4beb64435693c9f |
--- /dev/null |
+++ b/ios/chrome/app/safe_mode/safe_mode_coordinator.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2016 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_APP_SAFE_MODE_SAFE_MODE_COORDINATOR_H_ |
+#define IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_COORDINATOR_H_ |
+ |
+#import "ios/chrome/browser/root_coordinator.h" |
+ |
+#import <UIKit/UIKit.h> |
+ |
+@class SafeModeCoordinator; |
+ |
+@protocol SafeModeCoordinatorDelegate<NSObject> |
+- (void)coordinatorDidExitSafeMode:(nonnull SafeModeCoordinator*)coordinator; |
+@end |
+ |
+// Coordinator to manage the Safe Mode UI. This should be self-contained. |
+// While this is a ChromeCoordinator, it doesn't support (and will DCHECK) using |
+// child coordinators. |
+@interface SafeModeCoordinator : RootCoordinator |
+ |
+// Delegate for this coordinator. |
+@property(nonatomic, nullable, assign) id<SafeModeCoordinatorDelegate> delegate; |
+ |
+// If YES, there's a reason to show this coordinator. |
++ (BOOL)shouldStart; |
+ |
+@end |
+ |
+#endif // IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_COORDINATOR_H_ |