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

Unified Diff: remoting/protocol/pairing_host_authenticator.h

Issue 1770923002: Remove dependency on V2Authenticator from ThirdParty and pairing authenticators. (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
« no previous file with comments | « remoting/protocol/pairing_client_authenticator.cc ('k') | remoting/protocol/pairing_host_authenticator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/pairing_host_authenticator.h
diff --git a/remoting/protocol/pairing_host_authenticator.h b/remoting/protocol/pairing_host_authenticator.h
index bb814f124b5efa0be0c4dec15d7b20a90d8c8d81..032569131cfe0b92a1f5a56941d85687476489c6 100644
--- a/remoting/protocol/pairing_host_authenticator.h
+++ b/remoting/protocol/pairing_host_authenticator.h
@@ -11,9 +11,6 @@
#include "remoting/protocol/pairing_registry.h"
namespace remoting {
-
-class RsaKeyPair;
-
namespace protocol {
class PairingRegistry;
@@ -22,8 +19,7 @@ class PairingHostAuthenticator : public PairingAuthenticatorBase {
public:
PairingHostAuthenticator(
scoped_refptr<PairingRegistry> pairing_registry,
- const std::string& local_cert,
- scoped_refptr<RsaKeyPair> key_pair,
+ const CreateBaseAuthenticatorCallback& create_base_authenticator_callback,
const std::string& pin);
~PairingHostAuthenticator() override;
@@ -34,10 +30,10 @@ class PairingHostAuthenticator : public PairingAuthenticatorBase {
const base::Closure& resume_callback) override;
private:
- // PairingAuthenticatorBase interface.
- void CreateV2AuthenticatorWithPIN(
+ // PairingAuthenticatorBase overrides.
+ void CreateSpakeAuthenticatorWithPin(
State initial_state,
- const SetAuthenticatorCallback& callback) override;
+ const base::Closure& resume_callback) override;
void AddPairingElements(buzz::XmlElement* message) override;
// Continue processing a protocol message once the pairing information for
@@ -48,11 +44,10 @@ class PairingHostAuthenticator : public PairingAuthenticatorBase {
// Protocol state.
scoped_refptr<PairingRegistry> pairing_registry_;
- std::string local_cert_;
- scoped_refptr<RsaKeyPair> key_pair_;
- const std::string& pin_;
- bool protocol_error_;
- bool waiting_for_paired_secret_;
+ CreateBaseAuthenticatorCallback create_base_authenticator_callback_;
+ std::string pin_;
+ bool protocol_error_ = false;
+ bool waiting_for_paired_secret_ = false;
base::WeakPtrFactory<PairingHostAuthenticator> weak_factory_;
« no previous file with comments | « remoting/protocol/pairing_client_authenticator.cc ('k') | remoting/protocol/pairing_host_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698