| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 REMOTING_PROTOCOL_CLIENT_AUTHENTICATION_CONFIG_H_ | 5 #ifndef REMOTING_PROTOCOL_CLIENT_AUTHENTICATION_CONFIG_H_ |
| 6 #define REMOTING_PROTOCOL_CLIENT_AUTHENTICATION_CONFIG_H_ | 6 #define REMOTING_PROTOCOL_CLIENT_AUTHENTICATION_CONFIG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // |token_fetched_callback| is called when the client authentication ends, on | 33 // |token_fetched_callback| is called when the client authentication ends, on |
| 34 // the same thread on which FetchThirdPartyTokenCallback was originally called. | 34 // the same thread on which FetchThirdPartyTokenCallback was originally called. |
| 35 typedef base::Callback<void( | 35 typedef base::Callback<void( |
| 36 const std::string& token_url, | 36 const std::string& token_url, |
| 37 const std::string& scope, | 37 const std::string& scope, |
| 38 const ThirdPartyTokenFetchedCallback& token_fetched_callback)> | 38 const ThirdPartyTokenFetchedCallback& token_fetched_callback)> |
| 39 FetchThirdPartyTokenCallback; | 39 FetchThirdPartyTokenCallback; |
| 40 | 40 |
| 41 struct ClientAuthenticationConfig { | 41 struct ClientAuthenticationConfig { |
| 42 ClientAuthenticationConfig(); | 42 ClientAuthenticationConfig(); |
| 43 ClientAuthenticationConfig(const ClientAuthenticationConfig& other); |
| 43 ~ClientAuthenticationConfig(); | 44 ~ClientAuthenticationConfig(); |
| 44 | 45 |
| 45 // Used for all authenticators. | 46 // Used for all authenticators. |
| 46 std::string host_id; | 47 std::string host_id; |
| 47 | 48 |
| 48 // Used for pairing authenticators | 49 // Used for pairing authenticators |
| 49 std::string pairing_client_id; | 50 std::string pairing_client_id; |
| 50 std::string pairing_secret; | 51 std::string pairing_secret; |
| 51 | 52 |
| 52 // Used for shared secret authenticators. | 53 // Used for shared secret authenticators. |
| 53 FetchSecretCallback fetch_secret_callback; | 54 FetchSecretCallback fetch_secret_callback; |
| 54 | 55 |
| 55 // Used for third party authenticators. | 56 // Used for third party authenticators. |
| 56 FetchThirdPartyTokenCallback fetch_third_party_token_callback; | 57 FetchThirdPartyTokenCallback fetch_third_party_token_callback; |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace protocol | 60 } // namespace protocol |
| 60 } // namespace remoting | 61 } // namespace remoting |
| 61 | 62 |
| 62 #endif // REMOTING_PROTOCOL_CLIENT_AUTHENTICATION_CONFIG_H_ | 63 #endif // REMOTING_PROTOCOL_CLIENT_AUTHENTICATION_CONFIG_H_ |
| OLD | NEW |