Fix initial hiding and centering cursor on ChromeOS
[chromium-blink-merge.git] / chromeos / login / auth / stub_authenticator.h
blob0fa11c4de60c31bb8bc09753a6f61b86ad9ecd3c
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 CHROMEOS_LOGIN_AUTH_STUB_AUTHENTICATOR_H_
6 #define CHROMEOS_LOGIN_AUTH_STUB_AUTHENTICATOR_H_
8 #include <string>
10 #include "base/message_loop/message_loop_proxy.h"
11 #include "chromeos/chromeos_export.h"
12 #include "chromeos/login/auth/authenticator.h"
13 #include "chromeos/login/auth/user_context.h"
15 namespace content {
16 class BrowserContext;
19 namespace chromeos {
21 class AuthStatusConsumer;
23 class CHROMEOS_EXPORT StubAuthenticator : public Authenticator {
24 public:
25 StubAuthenticator(AuthStatusConsumer* consumer,
26 const UserContext& expected_user_context);
28 // Authenticator:
29 void CompleteLogin(content::BrowserContext* context,
30 const UserContext& user_context) override;
31 void AuthenticateToLogin(content::BrowserContext* context,
32 const UserContext& user_context) override;
33 void AuthenticateToUnlock(const UserContext& user_context) override;
34 void LoginAsSupervisedUser(const UserContext& user_context) override;
35 void LoginOffTheRecord() override;
36 void LoginAsPublicSession(const UserContext& user_context) override;
37 void LoginAsKioskAccount(const std::string& app_user_id,
38 bool use_guest_mount) override;
39 void OnAuthSuccess() override;
40 void OnAuthFailure(const AuthFailure& failure) override;
41 void RecoverEncryptedData(const std::string& old_password) override;
42 void ResyncEncryptedData() override;
44 virtual void SetExpectedCredentials(const UserContext& user_context);
46 protected:
47 ~StubAuthenticator() override;
49 private:
50 UserContext expected_user_context_;
51 scoped_refptr<base::MessageLoopProxy> message_loop_;
53 DISALLOW_COPY_AND_ASSIGN(StubAuthenticator);
56 } // namespace chromeos
58 #endif // CHROMEOS_LOGIN_AUTH_STUB_AUTHENTICATOR_H_