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

Side by Side Diff: jingle/notifier/base/xmpp_client_socket_factory.h

Issue 4339001: Correctly handle SSL Client Authentication requests when connecting... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ 5 #ifndef JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_
6 #define JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ 6 #define JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h"
wtc 2010/11/11 01:11:35 Move this include into client_socket_factory.h.
Ryan Hamilton 2010/11/11 18:57:00 Done.
10 #include "net/socket/client_socket_factory.h" 11 #include "net/socket/client_socket_factory.h"
11 12
12 namespace net { 13 namespace net {
13 class DnsRRResolver; 14 class DnsRRResolver;
14 class SSLHostInfo; 15 class SSLHostInfo;
15 } 16 }
16 17
17 namespace notifier { 18 namespace notifier {
18 19
19 class XmppClientSocketFactory : public net::ClientSocketFactory { 20 class XmppClientSocketFactory : public net::ClientSocketFactory {
20 public: 21 public:
21 // Does not take ownership of |client_socket_factory|. 22 // Does not take ownership of |client_socket_factory|.
22 XmppClientSocketFactory( 23 XmppClientSocketFactory(
23 net::ClientSocketFactory* client_socket_factory, 24 net::ClientSocketFactory* client_socket_factory,
24 bool use_fake_ssl_client_socket); 25 bool use_fake_ssl_client_socket);
25 26
26 virtual ~XmppClientSocketFactory(); 27 virtual ~XmppClientSocketFactory();
27 28
28 // net::ClientSocketFactory implementation. 29 // net::ClientSocketFactory implementation.
29 virtual net::ClientSocket* CreateTCPClientSocket( 30 virtual net::ClientSocket* CreateTCPClientSocket(
30 const net::AddressList& addresses, net::NetLog* net_log, 31 const net::AddressList& addresses, net::NetLog* net_log,
31 const net::NetLog::Source& source); 32 const net::NetLog::Source& source);
32 virtual net::SSLClientSocket* CreateSSLClientSocket( 33 virtual net::SSLClientSocket* CreateSSLClientSocket(
33 net::ClientSocketHandle* transport_socket, const std::string& hostname, 34 net::ClientSocketHandle* transport_socket, const std::string& hostname,
34 const net::SSLConfig& ssl_config, net::SSLHostInfo* ssl_host_info, 35 uint16 port, const net::SSLConfig& ssl_config,
35 net::DnsRRResolver* dnsrr_resolver); 36 net::SSLHostInfo* ssl_host_info, net::DnsRRResolver* dnsrr_resolver);
36 37
37 private: 38 private:
38 net::ClientSocketFactory* const client_socket_factory_; 39 net::ClientSocketFactory* const client_socket_factory_;
39 const bool use_fake_ssl_client_socket_; 40 const bool use_fake_ssl_client_socket_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(XmppClientSocketFactory); 42 DISALLOW_COPY_AND_ASSIGN(XmppClientSocketFactory);
42 }; 43 };
43 44
44 } // namespace notifier 45 } // namespace notifier
45 46
46 #endif // JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ 47 #endif // JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698