| 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..8d9bfeb4d3aabc8d826af997f8d11cd7f32c4b44
|
| --- /dev/null
|
| +++ b/ash/login/lock_screen_controller.h
|
| @@ -0,0 +1,48 @@
|
| +// 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
|
| + : 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,
|
| + const std::string& password,
|
| + bool authenticated_by_pin);
|
| +
|
| + private:
|
| + 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_
|
|
|