Index: remoting/protocol/pairing_host_authenticator.h |
diff --git a/remoting/protocol/pairing_host_authenticator.h b/remoting/protocol/pairing_host_authenticator.h |
index 032569131cfe0b92a1f5a56941d85687476489c6..92774419cac1b297ce02d37a24cca6288e74998b 100644 |
--- a/remoting/protocol/pairing_host_authenticator.h |
+++ b/remoting/protocol/pairing_host_authenticator.h |
@@ -23,24 +23,27 @@ class PairingHostAuthenticator : public PairingAuthenticatorBase { |
const std::string& pin); |
~PairingHostAuthenticator() override; |
+ // Initialize the authenticator with the given |client_id| in |
+ // |preferred_initial_state|. |
+ void Initialize(const std::string& client_id, |
+ Authenticator::State preferred_initial_state, |
+ const base::Closure& resume_callback); |
+ |
// Authenticator interface. |
State state() const override; |
RejectionReason rejection_reason() const override; |
- void ProcessMessage(const buzz::XmlElement* message, |
- const base::Closure& resume_callback) override; |
private: |
// PairingAuthenticatorBase overrides. |
void CreateSpakeAuthenticatorWithPin( |
State initial_state, |
const base::Closure& resume_callback) override; |
- void AddPairingElements(buzz::XmlElement* message) override; |
- // Continue processing a protocol message once the pairing information for |
- // the client id has been received. |
- void ProcessMessageWithPairing(const buzz::XmlElement* message, |
- const base::Closure& resume_callback, |
- PairingRegistry::Pairing pairing); |
+ // Continue initializing once the pairing information for the client id has |
+ // been received. |
+ void InitializeWithPairing(Authenticator::State preferred_initial_state, |
+ const base::Closure& resume_callback, |
+ PairingRegistry::Pairing pairing); |
// Protocol state. |
scoped_refptr<PairingRegistry> pairing_registry_; |