OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_CHROMEOS_H_ |
| 7 |
| 8 #include "ash/public/interfaces/lock_screen.mojom.h" |
| 9 #include "base/macros.h" |
| 10 #include "mojo/public/cpp/bindings/binding.h" |
| 11 |
| 12 // Handles method calls delegated back to chrome from ash. Also notifies ash of |
| 13 // relevant state changes in chrome. |
| 14 class LockScreenClientChromeOS : public ash::mojom::LockScreenClient { |
| 15 public: |
| 16 LockScreenClientChromeOS(); |
| 17 ~LockScreenClientChromeOS() override; |
| 18 |
| 19 static LockScreenClientChromeOS* Get(); |
| 20 |
| 21 // ash::mojom::LockScreenClient: |
| 22 void AuthenticateUser(const AccountId& account_id, |
| 23 const std::string& password, |
| 24 bool authenticated_by_pin) override; |
| 25 |
| 26 void ShowSignInError(); |
| 27 |
| 28 private: |
| 29 // Lock screen mojo service in ash. |
| 30 ash::mojom::LockScreenPtr lock_screen_; |
| 31 |
| 32 // Binds this object to the client interface. |
| 33 mojo::Binding<ash::mojom::LockScreenClient> binding_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(LockScreenClientChromeOS); |
| 36 }; |
| 37 |
| 38 #endif // CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_CHROMEOS_H_ |
OLD | NEW |