OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ |
6 #define CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ | 6 #define CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/proximity_auth/proximity_auth_client.h" | 9 #include "components/proximity_auth/proximity_auth_client.h" |
10 | 10 |
11 class Profile; | 11 class Profile; |
12 | 12 |
13 // A Chrome-specific implementation of the ProximityAuthClient interface. | 13 // A Chrome-specific implementation of the ProximityAuthClient interface. |
14 // There is one |ChromeProximityAuthClient| per |Profile|. | 14 // There is one |ChromeProximityAuthClient| per |Profile|. |
15 class ChromeProximityAuthClient : public proximity_auth::ProximityAuthClient { | 15 class ChromeProximityAuthClient : public proximity_auth::ProximityAuthClient { |
16 public: | 16 public: |
17 explicit ChromeProximityAuthClient(Profile* profile); | 17 explicit ChromeProximityAuthClient(Profile* profile); |
18 ~ChromeProximityAuthClient() override; | 18 ~ChromeProximityAuthClient() override; |
19 | 19 |
20 // proximity_auth::ProximityAuthClient: | 20 // proximity_auth::ProximityAuthClient: |
21 std::string GetAuthenticatedUsername() const override; | 21 std::string GetAuthenticatedUsername() const override; |
| 22 void UpdateScreenlockState(proximity_auth::ScreenlockState state) override; |
22 void FinalizeUnlock(bool success) override; | 23 void FinalizeUnlock(bool success) override; |
| 24 void FinalizeSignin(const std::string& secret) override; |
23 | 25 |
24 private: | 26 private: |
25 Profile* const profile_; | 27 Profile* const profile_; |
26 | 28 |
27 DISALLOW_COPY_AND_ASSIGN(ChromeProximityAuthClient); | 29 DISALLOW_COPY_AND_ASSIGN(ChromeProximityAuthClient); |
28 }; | 30 }; |
29 | 31 |
30 #endif // CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ | 32 #endif // CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ |
OLD | NEW |