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

Unified Diff: chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h

Issue 495563003: Move ParallelAuthnticator to chromeos and rename it to CryptohomeAuthenticator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/auth/chrome_cryptohome_authenticator.h
diff --git a/chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h b/chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h
new file mode 100644
index 0000000000000000000000000000000000000000..03815be13da7e4f22a115a82efc8825ba4db1f96
--- /dev/null
+++ b/chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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_AUTH_PARALLEL_AUTHENTICATOR_H_
Nikita (slow) 2014/08/21 10:55:24 nit: Update guard
Denis Kuznetsov (DE-MUC) 2014/08/21 11:22:03 Done.
+#define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_PARALLEL_AUTHENTICATOR_H_
+
+#include <string>
+
+#include "chromeos/login/auth/cryptohome_authenticator.h"
+
+namespace chromeos {
+
+class ChromeCryptohomeAuthenticator : public CryptohomeAuthenticator {
+ public:
+ explicit ChromeCryptohomeAuthenticator(AuthStatusConsumer* consumer);
+
+ protected:
+ virtual ~ChromeCryptohomeAuthenticator();
+
+ virtual bool IsKnownUser(const UserContext& context) OVERRIDE;
+ virtual bool IsSafeMode() OVERRIDE;
+ virtual void CheckSafeModeOwnership(const UserContext& context,
+ const IsOwnerCallback& callback) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ChromeCryptohomeAuthenticator);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_PARALLEL_AUTHENTICATOR_H_

Powered by Google App Engine
This is Rietveld 408576698