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

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

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 30 matching lines...) Expand all
41 const std::string& host_owner, 41 const std::string& host_owner,
42 const std::string& local_cert, 42 const std::string& local_cert,
43 scoped_refptr<RsaKeyPair> key_pair, 43 scoped_refptr<RsaKeyPair> key_pair,
44 scoped_ptr<TokenValidatorFactory> token_validator_factory); 44 scoped_ptr<TokenValidatorFactory> token_validator_factory);
45 45
46 // Create a factory that dispenses rejecting authenticators (used when the 46 // Create a factory that dispenses rejecting authenticators (used when the
47 // host config/policy is inconsistent) 47 // host config/policy is inconsistent)
48 static scoped_ptr<AuthenticatorFactory> CreateRejecting(); 48 static scoped_ptr<AuthenticatorFactory> CreateRejecting();
49 49
50 Me2MeHostAuthenticatorFactory(); 50 Me2MeHostAuthenticatorFactory();
51 virtual ~Me2MeHostAuthenticatorFactory(); 51 ~Me2MeHostAuthenticatorFactory() override;
52 52
53 // AuthenticatorFactory interface. 53 // AuthenticatorFactory interface.
54 virtual scoped_ptr<Authenticator> CreateAuthenticator( 54 scoped_ptr<Authenticator> CreateAuthenticator(
55 const std::string& local_jid, 55 const std::string& local_jid,
56 const std::string& remote_jid, 56 const std::string& remote_jid,
57 const buzz::XmlElement* first_message) override; 57 const buzz::XmlElement* first_message) override;
58 58
59 private: 59 private:
60 // Used for all host authenticators. 60 // Used for all host authenticators.
61 bool use_service_account_; 61 bool use_service_account_;
62 std::string host_owner_; 62 std::string host_owner_;
63 std::string local_cert_; 63 std::string local_cert_;
64 scoped_refptr<RsaKeyPair> key_pair_; 64 scoped_refptr<RsaKeyPair> key_pair_;
65 65
66 // Used only for shared secret host authenticators. 66 // Used only for shared secret host authenticators.
67 SharedSecretHash shared_secret_hash_; 67 SharedSecretHash shared_secret_hash_;
68 68
69 // Used only for third party host authenticators. 69 // Used only for third party host authenticators.
70 scoped_ptr<TokenValidatorFactory> token_validator_factory_; 70 scoped_ptr<TokenValidatorFactory> token_validator_factory_;
71 71
72 // Used only for pairing host authenticators. 72 // Used only for pairing host authenticators.
73 scoped_refptr<PairingRegistry> pairing_registry_; 73 scoped_refptr<PairingRegistry> pairing_registry_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory); 75 DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory);
76 }; 76 };
77 77
78 } // namespace protocol 78 } // namespace protocol
79 } // namespace remoting 79 } // namespace remoting
80 80
81 #endif // REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ 81 #endif // REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_
OLDNEW
« no previous file with comments | « remoting/protocol/libjingle_transport_factory.cc ('k') | remoting/protocol/me2me_host_authenticator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698