Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Unified Diff: remoting/protocol/pairing_client_authenticator.h

Issue 1794433002: Use ClientAuthenticationConfig in PairingClientAuthenticator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/pairing_client_authenticator.h
diff --git a/remoting/protocol/pairing_client_authenticator.h b/remoting/protocol/pairing_client_authenticator.h
index ad93877a7657e5f9932f7c76fb19e0483fe82a13..1404e35ed87dc5c784107ebcc774c38b054e4c7e 100644
--- a/remoting/protocol/pairing_client_authenticator.h
+++ b/remoting/protocol/pairing_client_authenticator.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "remoting/protocol/client_authentication_config.h"
#include "remoting/protocol/pairing_authenticator_base.h"
namespace remoting {
@@ -15,11 +16,9 @@ namespace protocol {
class PairingClientAuthenticator : public PairingAuthenticatorBase {
public:
PairingClientAuthenticator(
- const std::string& client_id,
- const std::string& paired_secret,
- const CreateBaseAuthenticatorCallback& create_base_authenticator_callback,
- const FetchSecretCallback& fetch_pin_callback,
- const std::string& host_id);
+ const ClientAuthenticationConfig& client_auth_config,
+ const CreateBaseAuthenticatorCallback&
+ create_base_authenticator_callback);
~PairingClientAuthenticator() override;
// Authenticator interface.
@@ -36,13 +35,11 @@ class PairingClientAuthenticator : public PairingAuthenticatorBase {
const base::Closure& resume_callback,
const std::string& pin);
- // Protocol state.
- bool sent_client_id_ = false;
- std::string client_id_;
- std::string paired_secret_;
+ ClientAuthenticationConfig client_auth_config_;
CreateBaseAuthenticatorCallback create_base_authenticator_callback_;
- FetchSecretCallback fetch_pin_callback_;
- std::string host_id_;
+
+ // Set to true after client_id is sent to the host.
+ bool sent_client_id_ = false;
// Set to true if a PIN-based authenticator has been requested but has not
// yet been set.
« no previous file with comments | « remoting/protocol/negotiating_client_authenticator.cc ('k') | remoting/protocol/pairing_client_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698