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