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 PrefService; |
11 class Profile; | 12 class Profile; |
| 13 class EasyUnlockServiceRegular; |
12 | 14 |
13 // A Chrome-specific implementation of the ProximityAuthClient interface. | 15 // A Chrome-specific implementation of the ProximityAuthClient interface. |
14 // There is one |ChromeProximityAuthClient| per |Profile|. | 16 // There is one |ChromeProximityAuthClient| per |Profile|. |
15 class ChromeProximityAuthClient : public proximity_auth::ProximityAuthClient { | 17 class ChromeProximityAuthClient : public proximity_auth::ProximityAuthClient { |
16 public: | 18 public: |
17 explicit ChromeProximityAuthClient(Profile* profile); | 19 explicit ChromeProximityAuthClient(Profile* profile); |
18 ~ChromeProximityAuthClient() override; | 20 ~ChromeProximityAuthClient() override; |
19 | 21 |
20 // proximity_auth::ProximityAuthClient: | 22 // proximity_auth::ProximityAuthClient: |
21 std::string GetAuthenticatedUsername() const override; | 23 std::string GetAuthenticatedUsername() const override; |
22 void UpdateScreenlockState(proximity_auth::ScreenlockState state) override; | 24 void UpdateScreenlockState(proximity_auth::ScreenlockState state) override; |
23 void FinalizeUnlock(bool success) override; | 25 void FinalizeUnlock(bool success) override; |
| 26 PrefService* GetPrefService() override; |
| 27 scoped_ptr<proximity_auth::SecureMessageDelegate> |
| 28 CreateSecureMessageDelegate() override; |
| 29 scoped_ptr<proximity_auth::CryptAuthClientFactory> |
| 30 CreateCryptAuthClientFactory() override; |
| 31 cryptauth::DeviceClassifier GetDeviceClassifier() override; |
| 32 std::string GetAccountId() override; |
| 33 proximity_auth::CryptAuthEnrollmentManager* GetCryptAuthEnrollmentManager() |
| 34 override; |
| 35 proximity_auth::CryptAuthDeviceManager* GetCryptAuthDeviceManager() override; |
24 void FinalizeSignin(const std::string& secret) override; | 36 void FinalizeSignin(const std::string& secret) override; |
25 | 37 |
26 private: | 38 private: |
27 Profile* const profile_; | 39 Profile* const profile_; |
28 | 40 |
29 DISALLOW_COPY_AND_ASSIGN(ChromeProximityAuthClient); | 41 DISALLOW_COPY_AND_ASSIGN(ChromeProximityAuthClient); |
30 }; | 42 }; |
31 | 43 |
32 #endif // CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ | 44 #endif // CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ |
OLD | NEW |