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

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

Issue 6800009: Attn: Mike Belshe Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 8 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) 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 #include "jingle/notifier/base/xmpp_client_socket_factory.h" 5 #include "jingle/notifier/base/xmpp_client_socket_factory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "jingle/notifier/base/fake_ssl_client_socket.h" 8 #include "jingle/notifier/base/fake_ssl_client_socket.h"
9 9
10 namespace notifier { 10 namespace notifier {
(...skipping 12 matching lines...) Expand all
23 const net::AddressList& addresses, 23 const net::AddressList& addresses,
24 net::NetLog* net_log, 24 net::NetLog* net_log,
25 const net::NetLog::Source& source) { 25 const net::NetLog::Source& source) {
26 net::ClientSocket* transport_socket = 26 net::ClientSocket* transport_socket =
27 client_socket_factory_->CreateTCPClientSocket( 27 client_socket_factory_->CreateTCPClientSocket(
28 addresses, net_log, source); 28 addresses, net_log, source);
29 return (use_fake_ssl_client_socket_ ? 29 return (use_fake_ssl_client_socket_ ?
30 new FakeSSLClientSocket(transport_socket) : transport_socket); 30 new FakeSSLClientSocket(transport_socket) : transport_socket);
31 } 31 }
32 32
33 net::ClientSocket* XmppClientSocketFactory::CreateSCTPClientSocket(
34 const net::AddressList& addresses,
35 net::NetLog* net_log,
36 const net::NetLog::Source& source) {
37 net::ClientSocket* transport_socket =
38 client_socket_factory_->CreateSCTPClientSocket(
39 addresses, net_log, source);
40 return (use_fake_ssl_client_socket_ ?
41 new FakeSSLClientSocket(transport_socket) : transport_socket);
42 }
43
33 net::SSLClientSocket* XmppClientSocketFactory::CreateSSLClientSocket( 44 net::SSLClientSocket* XmppClientSocketFactory::CreateSSLClientSocket(
34 net::ClientSocketHandle* transport_socket, 45 net::ClientSocketHandle* transport_socket,
35 const net::HostPortPair& host_and_port, 46 const net::HostPortPair& host_and_port,
36 const net::SSLConfig& ssl_config, 47 const net::SSLConfig& ssl_config,
37 net::SSLHostInfo* ssl_host_info, 48 net::SSLHostInfo* ssl_host_info,
38 net::CertVerifier* cert_verifier, 49 net::CertVerifier* cert_verifier,
39 net::DnsCertProvenanceChecker* dns_cert_checker) { 50 net::DnsCertProvenanceChecker* dns_cert_checker) {
40 return client_socket_factory_->CreateSSLClientSocket( 51 return client_socket_factory_->CreateSSLClientSocket(
41 transport_socket, host_and_port, ssl_config, ssl_host_info, 52 transport_socket, host_and_port, ssl_config, ssl_host_info,
42 cert_verifier, dns_cert_checker); 53 cert_verifier, dns_cert_checker);
43 } 54 }
44 55
45 void XmppClientSocketFactory::ClearSSLSessionCache() { 56 void XmppClientSocketFactory::ClearSSLSessionCache() {
46 client_socket_factory_->ClearSSLSessionCache(); 57 client_socket_factory_->ClearSSLSessionCache();
47 } 58 }
48 59
49 } // namespace 60 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698