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

Unified Diff: chrome/browser/chromeos/login/quick_unlock/pin_authentication.h

Issue 1977923002: Implement pin storage backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 7 months 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: chrome/browser/chromeos/login/quick_unlock/pin_authentication.h
diff --git a/chrome/browser/chromeos/login/quick_unlock/pin_authentication.h b/chrome/browser/chromeos/login/quick_unlock/pin_authentication.h
new file mode 100644
index 0000000000000000000000000000000000000000..4a16597edd5150ffb7787e3349bdebf779f43314
--- /dev/null
+++ b/chrome/browser/chromeos/login/quick_unlock/pin_authentication.h
@@ -0,0 +1,23 @@
+// 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 CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_PIN_AUTHENTICATION_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_PIN_AUTHENTICATION_H_
+
+#include <string>
+
+namespace chromeos {
+
+class PinStorage;
+
+// Is PIN entry available for the given user?
+bool IsPinAvailable(PinStorage* storage);
achuithb 2016/05/13 23:34:56 These should be in a new namespace nested in chrom
stevenjb 2016/05/16 16:33:34 +1
jdufault 2016/05/16 22:08:47 I wanted to keep them separate because conceptuall
+
+// Returns true if the given PIN is valid and the user is allowed to submit a
+// PIN (ie, no auth attempt will be made if IsPinAvailable returns false).
+bool IsValidPin(PinStorage* storage, const std::string& raw_pin);
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_PIN_AUTHENTICATION_H_

Powered by Google App Engine
This is Rietveld 408576698