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

Unified Diff: ios/chrome/browser/ui/settings/reauthentication_protocol.h

Issue 2587023002: Upstream Chrome on iOS source code [8/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/settings/reauthentication_protocol.h
diff --git a/ios/chrome/browser/ui/settings/reauthentication_protocol.h b/ios/chrome/browser/ui/settings/reauthentication_protocol.h
new file mode 100644
index 0000000000000000000000000000000000000000..ba63a9e2eb3b57da56abb5480a260bdd48cfffee
--- /dev/null
+++ b/ios/chrome/browser/ui/settings/reauthentication_protocol.h
@@ -0,0 +1,23 @@
+// Copyright 2015 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_SETTINGS_REAUTHENTICATION_PROTOCOL_H_
+#define IOS_CHROME_BROWSER_UI_SETTINGS_REAUTHENTICATION_PROTOCOL_H_
+
+#import <Foundation/Foundation.h>
+
+@protocol ReauthenticationProtocol<NSObject>
+
+// Checks whether Touch ID and/or passcode is enabled for the device.
+- (BOOL)canAttemptReauth;
+
+// Attempts to reauthenticate the user with Touch ID or passcode if Touch ID is
+// not available and the device is running iOS 9. |handler|
+// will take action depending on the result of the reauth attempt.
+- (void)attemptReauthWithLocalizedReason:(NSString*)localizedReason
+ handler:(void (^)(BOOL success))handler;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_SETTINGS_REAUTHENTICATION_PROTOCOL_H_

Powered by Google App Engine
This is Rietveld 408576698