| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_CRYPTOHOME_AUTHENTICATOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_CRYPTOHOME_AUTHENTICATOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_CRYPTOHOME_AUTHENTICATOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_CRYPTOHOME_AUTHENTICATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "chromeos/login/auth/cryptohome_authenticator.h" | 11 #include "chromeos/login/auth/cryptohome_authenticator.h" |
| 11 | 12 |
| 12 namespace chromeos { | 13 namespace chromeos { |
| 13 | 14 |
| 14 class ChromeCryptohomeAuthenticator : public CryptohomeAuthenticator { | 15 class ChromeCryptohomeAuthenticator : public CryptohomeAuthenticator { |
| 15 public: | 16 public: |
| 16 explicit ChromeCryptohomeAuthenticator(AuthStatusConsumer* consumer); | 17 explicit ChromeCryptohomeAuthenticator(AuthStatusConsumer* consumer); |
| 17 | 18 |
| 18 protected: | 19 protected: |
| 19 ~ChromeCryptohomeAuthenticator() override; | 20 ~ChromeCryptohomeAuthenticator() override; |
| 20 | 21 |
| 21 bool IsKnownUser(const UserContext& context) override; | 22 bool IsKnownUser(const UserContext& context) override; |
| 22 bool IsSafeMode() override; | 23 bool IsSafeMode() override; |
| 23 void CheckSafeModeOwnership(const UserContext& context, | 24 void CheckSafeModeOwnership(const UserContext& context, |
| 24 const IsOwnerCallback& callback) override; | 25 const IsOwnerCallback& callback) override; |
| 25 | 26 |
| 26 private: | 27 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(ChromeCryptohomeAuthenticator); | 28 DISALLOW_COPY_AND_ASSIGN(ChromeCryptohomeAuthenticator); |
| 28 }; | 29 }; |
| 29 | 30 |
| 30 } // namespace chromeos | 31 } // namespace chromeos |
| 31 | 32 |
| 32 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_CRYPTOHOME_AUTHENTICATOR_H_ | 33 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_CRYPTOHOME_AUTHENTICATOR_H_ |
| OLD | NEW |