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

Unified Diff: remoting/protocol/negotiating_host_authenticator.h

Issue 1768383004: Cleanup AuthenticatorMethod usage. (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/negotiating_host_authenticator.h
diff --git a/remoting/protocol/negotiating_host_authenticator.h b/remoting/protocol/negotiating_host_authenticator.h
index ed0c8ee6f45c150f5b312faa0d32653e7c5e5aee..c2e2c541d5639e4ce4fad0585781e9b47c5f5135 100644
--- a/remoting/protocol/negotiating_host_authenticator.h
+++ b/remoting/protocol/negotiating_host_authenticator.h
@@ -11,7 +11,6 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "remoting/protocol/authentication_method.h"
#include "remoting/protocol/authenticator.h"
#include "remoting/protocol/negotiating_authenticator_base.h"
#include "remoting/protocol/pairing_registry.h"
@@ -35,9 +34,9 @@ class NegotiatingHostAuthenticator : public NegotiatingAuthenticatorBase {
scoped_refptr<RsaKeyPair> key_pair,
const std::string& access_code);
- // Creates a host authenticator, using a fixed PIN.
- // If |pairing_registry| is non-nullptr then the spake2_pair method will
- // be offered, supporting PIN-less authentication.
+ // Creates a host authenticator, using a fixed PIN. If |pairing_registry| is
+ // non-nullptr then the paired methods will be offered, supporting
+ // PIN-less authentication.
static scoped_ptr<Authenticator> CreateWithPin(
const std::string& local_cert,
scoped_refptr<RsaKeyPair> key_pair,
@@ -56,9 +55,8 @@ class NegotiatingHostAuthenticator : public NegotiatingAuthenticatorBase {
scoped_ptr<buzz::XmlElement> GetNextMessage() override;
private:
- NegotiatingHostAuthenticator(
- const std::string& local_cert,
- scoped_refptr<RsaKeyPair> key_pair);
+ NegotiatingHostAuthenticator(const std::string& local_cert,
+ scoped_refptr<RsaKeyPair> key_pair);
// (Asynchronously) creates an authenticator, and stores it in
// |current_authenticator_|. Authenticators that can be started in either
« no previous file with comments | « remoting/protocol/negotiating_client_authenticator.cc ('k') | remoting/protocol/negotiating_host_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698