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

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

Issue 9240033: Use scoped_ptr<>.Pass() to pass ownership in the remoting protocol code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 11 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 | Annotate | Revision Log
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_IT2ME_HOST_AUTHENTICATOR_FACTORY_H_ 5 #ifndef REMOTING_PROTOCOL_IT2ME_HOST_AUTHENTICATOR_FACTORY_H_
6 #define REMOTING_PROTOCOL_IT2ME_HOST_AUTHENTICATOR_FACTORY_H_ 6 #define REMOTING_PROTOCOL_IT2ME_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 12 matching lines...) Expand all
23 // understands both the V2 and legacy V1 authentication mechanisms. 23 // understands both the V2 and legacy V1 authentication mechanisms.
24 class It2MeHostAuthenticatorFactory : public AuthenticatorFactory { 24 class It2MeHostAuthenticatorFactory : public AuthenticatorFactory {
25 public: 25 public:
26 It2MeHostAuthenticatorFactory( 26 It2MeHostAuthenticatorFactory(
27 const std::string& local_cert, 27 const std::string& local_cert,
28 const crypto::RSAPrivateKey& local_private_key, 28 const crypto::RSAPrivateKey& local_private_key,
29 const std::string& shared_secret); 29 const std::string& shared_secret);
30 virtual ~It2MeHostAuthenticatorFactory(); 30 virtual ~It2MeHostAuthenticatorFactory();
31 31
32 // AuthenticatorFactory interface. 32 // AuthenticatorFactory interface.
33 virtual Authenticator* CreateAuthenticator( 33 virtual scoped_ptr<Authenticator> CreateAuthenticator(
34 const std::string& remote_jid, 34 const std::string& remote_jid,
35 const buzz::XmlElement* first_message) OVERRIDE; 35 const buzz::XmlElement* first_message) OVERRIDE;
36 36
37 private: 37 private:
38 std::string local_cert_; 38 std::string local_cert_;
39 scoped_ptr<crypto::RSAPrivateKey> local_private_key_; 39 scoped_ptr<crypto::RSAPrivateKey> local_private_key_;
40 std::string shared_secret_; 40 std::string shared_secret_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(It2MeHostAuthenticatorFactory); 42 DISALLOW_COPY_AND_ASSIGN(It2MeHostAuthenticatorFactory);
43 }; 43 };
44 44
45 } // namespace protocol 45 } // namespace protocol
46 } // namespace remoting 46 } // namespace remoting
47 47
48 #endif // REMOTING_PROTOCOL_IT2ME_HOST_AUTHENTICATOR_FACTORY_H_ 48 #endif // REMOTING_PROTOCOL_IT2ME_HOST_AUTHENTICATOR_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698