OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_COORDINATOR_H_ |
| 6 #define IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_COORDINATOR_H_ |
| 7 |
| 8 #import "ios/chrome/browser/root_coordinator.h" |
| 9 |
| 10 #import <UIKit/UIKit.h> |
| 11 |
| 12 @class SafeModeCoordinator; |
| 13 |
| 14 @protocol SafeModeCoordinatorDelegate<NSObject> |
| 15 - (void)coordinatorDidExitSafeMode:(nonnull SafeModeCoordinator*)coordinator; |
| 16 @end |
| 17 |
| 18 // Coordinator to manage the Safe Mode UI. This should be self-contained. |
| 19 // While this is a ChromeCoordinator, it doesn't support (and will DCHECK) using |
| 20 // child coordinators. |
| 21 @interface SafeModeCoordinator : RootCoordinator |
| 22 |
| 23 // Delegate for this coordinator. |
| 24 @property(nonatomic, nullable, assign) id<SafeModeCoordinatorDelegate> delegate; |
| 25 |
| 26 // If YES, there's a reason to show this coordinator. |
| 27 + (BOOL)shouldStart; |
| 28 |
| 29 @end |
| 30 |
| 31 #endif // IOS_CHROME_APP_SAFE_MODE_SAFE_MODE_COORDINATOR_H_ |
OLD | NEW |