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

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

Issue 966433002: Malformed PortRange or ThirdPartyAuthConfig trigger OnPolicyError. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing a Windows-specific, pre-processor-related build break. Created 5 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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 25 matching lines...) Expand all
36 scoped_refptr<PairingRegistry> pairing_registry); 36 scoped_refptr<PairingRegistry> pairing_registry);
37 37
38 // Create a factory that dispenses third party authenticators. 38 // Create a factory that dispenses third party authenticators.
39 static scoped_ptr<AuthenticatorFactory> CreateWithThirdPartyAuth( 39 static scoped_ptr<AuthenticatorFactory> CreateWithThirdPartyAuth(
40 bool use_service_account, 40 bool use_service_account,
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
47 // host config/policy is inconsistent)
48 static scoped_ptr<AuthenticatorFactory> CreateRejecting();
49
50 Me2MeHostAuthenticatorFactory(); 46 Me2MeHostAuthenticatorFactory();
51 ~Me2MeHostAuthenticatorFactory() override; 47 ~Me2MeHostAuthenticatorFactory() override;
52 48
53 // AuthenticatorFactory interface. 49 // AuthenticatorFactory interface.
54 scoped_ptr<Authenticator> CreateAuthenticator( 50 scoped_ptr<Authenticator> CreateAuthenticator(
55 const std::string& local_jid, 51 const std::string& local_jid,
56 const std::string& remote_jid, 52 const std::string& remote_jid,
57 const buzz::XmlElement* first_message) override; 53 const buzz::XmlElement* first_message) override;
58 54
59 private: 55 private:
(...skipping 12 matching lines...) Expand all
72 // Used only for pairing host authenticators. 68 // Used only for pairing host authenticators.
73 scoped_refptr<PairingRegistry> pairing_registry_; 69 scoped_refptr<PairingRegistry> pairing_registry_;
74 70
75 DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory); 71 DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory);
76 }; 72 };
77 73
78 } // namespace protocol 74 } // namespace protocol
79 } // namespace remoting 75 } // namespace remoting
80 76
81 #endif // REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ 77 #endif // REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_
OLDNEW
« no previous file with comments | « remoting/protocol/chromium_port_allocator.cc ('k') | remoting/protocol/me2me_host_authenticator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698