blob: e3b97afc233b47d50b3ad850a20c9239178c0489 [file] [log] [blame]
// 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_CHROME_CRYPTOHOME_AUTHENTICATOR_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_CRYPTOHOME_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_CHROME_CRYPTOHOME_AUTHENTICATOR_H_