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

Unified Diff: ios/chrome/app/safe_mode/safe_mode_coordinator.h

Issue 2580363002: Upstream Chrome on iOS source code [1/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/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_
« no previous file with comments | « ios/chrome/app/multitasking_test_application_delegate.mm ('k') | ios/chrome/app/safe_mode/safe_mode_coordinator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698