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

Side by Side Diff: remoting/protocol/me2me_host_authenticator_factory.h

Issue 1769603005: Remove first_message argument from AuthenticatorFactory::Create(). (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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ 5 #ifndef REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_
6 #define REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ 6 #define REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 scoped_refptr<RsaKeyPair> key_pair, 44 scoped_refptr<RsaKeyPair> key_pair,
45 const std::string& required_client_domain, 45 const std::string& required_client_domain,
46 scoped_ptr<TokenValidatorFactory> token_validator_factory); 46 scoped_ptr<TokenValidatorFactory> token_validator_factory);
47 47
48 Me2MeHostAuthenticatorFactory(); 48 Me2MeHostAuthenticatorFactory();
49 ~Me2MeHostAuthenticatorFactory() override; 49 ~Me2MeHostAuthenticatorFactory() override;
50 50
51 // AuthenticatorFactory interface. 51 // AuthenticatorFactory interface.
52 scoped_ptr<Authenticator> CreateAuthenticator( 52 scoped_ptr<Authenticator> CreateAuthenticator(
53 const std::string& local_jid, 53 const std::string& local_jid,
54 const std::string& remote_jid, 54 const std::string& remote_jid) override;
55 const buzz::XmlElement* first_message) override;
56 55
57 private: 56 private:
58 // Used for all host authenticators. 57 // Used for all host authenticators.
59 bool use_service_account_; 58 bool use_service_account_;
60 std::string host_owner_; 59 std::string host_owner_;
61 std::string local_cert_; 60 std::string local_cert_;
62 scoped_refptr<RsaKeyPair> key_pair_; 61 scoped_refptr<RsaKeyPair> key_pair_;
63 std::string required_client_domain_; 62 std::string required_client_domain_;
64 63
65 // Used only for PIN-based host authenticators. 64 // Used only for PIN-based host authenticators.
66 std::string pin_hash_; 65 std::string pin_hash_;
67 66
68 // Used only for third party host authenticators. 67 // Used only for third party host authenticators.
69 scoped_ptr<TokenValidatorFactory> token_validator_factory_; 68 scoped_ptr<TokenValidatorFactory> token_validator_factory_;
70 69
71 // Used only for pairing host authenticators. 70 // Used only for pairing host authenticators.
72 scoped_refptr<PairingRegistry> pairing_registry_; 71 scoped_refptr<PairingRegistry> pairing_registry_;
73 72
74 DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory); 73 DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory);
75 }; 74 };
76 75
77 } // namespace protocol 76 } // namespace protocol
78 } // namespace remoting 77 } // namespace remoting
79 78
80 #endif // REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ 79 #endif // REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_
OLDNEW
« no previous file with comments | « remoting/protocol/jingle_session_manager.cc ('k') | remoting/protocol/me2me_host_authenticator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698