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

Unified Diff: remoting/protocol/pairing_host_authenticator.h

Issue 1781173005: Handle pairing_client_id in the negotiating authenticators. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@config
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 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_;
« 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