[cleanup] Removed online password check on Chrome OS login.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / auth / chrome_cryptohome_authenticator.h
blobb0386454a1e5aec14c8cc3fba4c020e6199b87de
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_CRYPTOHOME_AUTHENTICATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_CRYPTOHOME_AUTHENTICATOR_H_
8 #include <string>
10 #include "chromeos/login/auth/cryptohome_authenticator.h"
12 namespace chromeos {
14 class ChromeCryptohomeAuthenticator : public CryptohomeAuthenticator {
15 public:
16 explicit ChromeCryptohomeAuthenticator(AuthStatusConsumer* consumer);
18 protected:
19 ~ChromeCryptohomeAuthenticator() override;
21 bool IsKnownUser(const UserContext& context) override;
22 bool IsSafeMode() override;
23 void CheckSafeModeOwnership(const UserContext& context,
24 const IsOwnerCallback& callback) override;
26 private:
27 DISALLOW_COPY_AND_ASSIGN(ChromeCryptohomeAuthenticator);
30 } // namespace chromeos
32 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_CRYPTOHOME_AUTHENTICATOR_H_