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

Unified Diff: remoting/protocol/negotiating_host_authenticator.h

Issue 1788443005: Make TokenValidatorFactory ref-counted. (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 22508861d716a9c7b49d9b4ba1ef95b47e34e6af..2ba78d581d1f80da1beed1eff2294e3efcfecff4 100644
--- a/remoting/protocol/negotiating_host_authenticator.h
+++ b/remoting/protocol/negotiating_host_authenticator.h
@@ -22,6 +22,8 @@ class RsaKeyPair;
namespace protocol {
+class TokenValidatorFactory;
+
// Host-side implementation of NegotiatingAuthenticatorBase.
// See comments in negotiating_authenticator_base.h for a general explanation.
class NegotiatingHostAuthenticator : public NegotiatingAuthenticatorBase {
@@ -53,7 +55,7 @@ class NegotiatingHostAuthenticator : public NegotiatingAuthenticatorBase {
const std::string& remote_id,
const std::string& local_cert,
scoped_refptr<RsaKeyPair> key_pair,
- scoped_ptr<TokenValidator> token_validator);
+ scoped_refptr<TokenValidatorFactory> token_validator_factory);
// Overriden from Authenticator.
void ProcessMessage(const buzz::XmlElement* message,
@@ -83,7 +85,7 @@ class NegotiatingHostAuthenticator : public NegotiatingAuthenticatorBase {
std::string shared_secret_hash_;
// Used only for third party host authenticators.
- scoped_ptr<TokenValidator> token_validator_;
+ scoped_refptr<TokenValidatorFactory> token_validator_factory_;
// Used only for pairing authenticators.
scoped_refptr<PairingRegistry> pairing_registry_;
« no previous file with comments | « remoting/protocol/me2me_host_authenticator_factory.cc ('k') | remoting/protocol/negotiating_host_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698