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 { | |
James Cook
2017/05/15 21:15:01
This class/file don't need to have "chromeos" in t
xiaoyinh(OOO Sep 11-29)
2017/05/16 17:32:50
Done. Thanks for the information!
| |
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& hashed_password, | |
24 bool authenticated_by_pin) override; | |
25 | |
26 void ShowErrorMessage(); | |
27 void ClearErrors(); | |
28 | |
29 private: | |
30 // Lock screen mojo service in ash. | |
31 ash::mojom::LockScreenPtr lock_screen_; | |
32 | |
33 // Binds this object to the client interface. | |
34 mojo::Binding<ash::mojom::LockScreenClient> binding_; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(LockScreenClientChromeOS); | |
37 }; | |
38 | |
39 #endif // CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_CHROMEOS_H_ | |
OLD | NEW |