Chromium Code Reviews| Index: ash/login/lock_screen_controller.h |
| diff --git a/ash/login/lock_screen_controller.h b/ash/login/lock_screen_controller.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d418f13197c33cc50481b1e207fd897c66a4db62 |
| --- /dev/null |
| +++ b/ash/login/lock_screen_controller.h |
| @@ -0,0 +1,53 @@ |
| +// Copyright 2017 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 ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_ |
| +#define ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_ |
| + |
| +#include "ash/ash_export.h" |
| +#include "ash/public/interfaces/lock_screen.mojom.h" |
| +#include "base/macros.h" |
| +#include "mojo/public/cpp/bindings/binding_set.h" |
| + |
| +namespace ash { |
| + |
| +class ASH_EXPORT LockScreenController |
|
James Cook
2017/05/15 21:15:00
Class documentation please.
xiaoyinh(OOO Sep 11-29)
2017/05/16 17:32:50
Done.
|
| + : NON_EXPORTED_BASE(public mojom::LockScreen) { |
| + public: |
| + LockScreenController(); |
| + ~LockScreenController() override; |
| + |
| + // Binds the mojom::LockScreen interface to this object. |
| + void BindRequest(mojom::LockScreenRequest request); |
| + |
| + // mojom::LockScreen: |
| + void SetClient(mojom::LockScreenClientPtr client) override; |
| + void ShowErrorMessage() override; |
| + void ClearErrors() override; |
| + |
| + void AuthenticateUser(const AccountId& account_id, |
|
James Cook
2017/05/15 21:15:00
Document what this does. For example, how does it
xiaoyinh(OOO Sep 11-29)
2017/05/16 17:32:50
Done.
|
| + const std::string& password, |
| + bool authenticated_by_pin); |
| + |
| + private: |
| + void DoAuthenticateUser(const AccountId& account_id, |
| + const std::string& password, |
| + bool authenticated_by_pin, |
| + const std::string& system_salt); |
| + |
| + void OnSaltObtained(const std::string& system_salt); |
| + |
| + // Client interface in chrome browser. May be null in tests. |
| + mojom::LockScreenClientPtr lock_screen_client_; |
| + |
| + // Bindings for the LockScreen interface. |
| + mojo::BindingSet<mojom::LockScreen> bindings_; |
| + std::string system_salt_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(LockScreenController); |
| +}; |
| + |
| +} // namspace ash |
| + |
| +#endif // ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_ |