OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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. |
| 4 |
| 5 #ifndef ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_ |
| 6 #define ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_ |
| 7 |
| 8 #include "ash/ash_export.h" |
| 9 #include "ash/public/interfaces/lock_screen.mojom.h" |
| 10 #include "base/macros.h" |
| 11 #include "mojo/public/cpp/bindings/binding_set.h" |
| 12 |
| 13 namespace ash { |
| 14 |
| 15 class ASH_EXPORT LockScreenController |
| 16 : NON_EXPORTED_BASE(public mojom::LockScreen) { |
| 17 public: |
| 18 LockScreenController(); |
| 19 ~LockScreenController() override; |
| 20 |
| 21 // Binds the mojom::LockScreen interface to this object. |
| 22 void BindRequest(mojom::LockScreenRequest request); |
| 23 |
| 24 // mojom::LockScreen: |
| 25 void SetClient(mojom::LockScreenClientPtr client) override; |
| 26 void ShowErrorMessage() override; |
| 27 |
| 28 void AuthenticateUser(const AccountId& account_id, |
| 29 const std::string& password, |
| 30 bool authenticated_by_pin); |
| 31 |
| 32 private: |
| 33 // Client interface in chrome browser. May be null in tests. |
| 34 mojom::LockScreenClientPtr lock_screen_client_; |
| 35 |
| 36 // Bindings for the LockScreen interface. |
| 37 mojo::BindingSet<mojom::LockScreen> bindings_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(LockScreenController); |
| 40 }; |
| 41 |
| 42 } // namspace ash |
| 43 |
| 44 #endif // ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_ |
OLD | NEW |