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

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

Issue 9617039: Change Origin bound certs -> Domain bound certs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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 #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 #include "jingle/notifier/base/proxy_resolving_client_socket.h" 9 #include "jingle/notifier/base/proxy_resolving_client_socket.h"
10 #include "net/socket/client_socket_factory.h" 10 #include "net/socket/client_socket_factory.h"
11 #include "net/socket/ssl_client_socket.h" 11 #include "net/socket/ssl_client_socket.h"
(...skipping 26 matching lines...) Expand all
38 return (use_fake_ssl_client_socket_ ? 38 return (use_fake_ssl_client_socket_ ?
39 new FakeSSLClientSocket(transport_socket) : transport_socket); 39 new FakeSSLClientSocket(transport_socket) : transport_socket);
40 } 40 }
41 41
42 net::SSLClientSocket* XmppClientSocketFactory::CreateSSLClientSocket( 42 net::SSLClientSocket* XmppClientSocketFactory::CreateSSLClientSocket(
43 net::ClientSocketHandle* transport_socket, 43 net::ClientSocketHandle* transport_socket,
44 const net::HostPortPair& host_and_port) { 44 const net::HostPortPair& host_and_port) {
45 net::SSLClientSocketContext context; 45 net::SSLClientSocketContext context;
46 context.cert_verifier = 46 context.cert_verifier =
47 request_context_getter_->GetURLRequestContext()->cert_verifier(); 47 request_context_getter_->GetURLRequestContext()->cert_verifier();
48 // TODO(rkn): context.origin_bound_cert_service is NULL because the 48 // TODO(rkn): context.server_bound_cert_service is NULL because the
49 // OriginBoundCertService class is not thread safe. 49 // ServerBoundCertService class is not thread safe.
50 return client_socket_factory_->CreateSSLClientSocket( 50 return client_socket_factory_->CreateSSLClientSocket(
51 transport_socket, host_and_port, ssl_config_, NULL, context); 51 transport_socket, host_and_port, ssl_config_, NULL, context);
52 } 52 }
53 53
54 54
55 } // namespace 55 } // namespace
OLDNEW
« no previous file with comments | « jingle/notifier/base/proxy_resolving_client_socket.cc ('k') | net/base/default_origin_bound_cert_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698