| 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 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 std::string GetAccountId() override; | 35 std::string GetAccountId() override; |
| 36 cryptauth::CryptAuthEnrollmentManager* GetCryptAuthEnrollmentManager() | 36 cryptauth::CryptAuthEnrollmentManager* GetCryptAuthEnrollmentManager() |
| 37 override; | 37 override; |
| 38 cryptauth::CryptAuthDeviceManager* GetCryptAuthDeviceManager() override; | 38 cryptauth::CryptAuthDeviceManager* GetCryptAuthDeviceManager() override; |
| 39 void FinalizeSignin(const std::string& secret) override; | 39 void FinalizeSignin(const std::string& secret) override; |
| 40 void GetChallengeForUserAndDevice( | 40 void GetChallengeForUserAndDevice( |
| 41 const std::string& user_id, | 41 const std::string& user_id, |
| 42 const std::string& remote_public_key, | 42 const std::string& remote_public_key, |
| 43 const std::string& nonce, | 43 const std::string& nonce, |
| 44 base::Callback<void(const std::string& challenge)> callback) override; | 44 base::Callback<void(const std::string& challenge)> callback) override; |
| 45 std::string GetLocalDevicePublicKey() override; |
| 45 | 46 |
| 46 private: | 47 private: |
| 47 cryptauth::CryptAuthService* GetCryptAuthService(); | 48 cryptauth::CryptAuthService* GetCryptAuthService(); |
| 48 | 49 |
| 49 Profile* const profile_; | 50 Profile* const profile_; |
| 50 | 51 |
| 51 DISALLOW_COPY_AND_ASSIGN(ChromeProximityAuthClient); | 52 DISALLOW_COPY_AND_ASSIGN(ChromeProximityAuthClient); |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 #endif // CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ | 55 #endif // CHROME_BROWSER_SIGNIN_CHROME_PROXIMITY_AUTH_CLIENT_H_ |
| OLD | NEW |