diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-18 15:44:44 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-18 15:44:44 +0000 |
commit | 3e35b224fd0c36f17f432f23e2eb3729667210b1 (patch) | |
tree | 9fc1ee327a5b872858aefe4bea60ded90080054e /jingle | |
parent | be796bb642e82b4702fb84cfb451a09a37890c58 (diff) | |
download | chromium_src-3e35b224fd0c36f17f432f23e2eb3729667210b1.zip chromium_src-3e35b224fd0c36f17f432f23e2eb3729667210b1.tar.gz chromium_src-3e35b224fd0c36f17f432f23e2eb3729667210b1.tar.bz2 |
net: Plumb DnsCertProvenanceChecker around.
DnsCertProvenanceChecker is introduced to abstract away the action of
uploading reports. It's implemented by ChromeDnsCertProvenanceChecker
which lives in a scoped_ptr off of a URLRequestContext.
It's only active on the main context (i.e. not in incognito mode). This
might change in the future, but it's a nice, conservative choice for the
moment.
The DnsCertProvenanceChecker is plumbed all the way to SSLClientSocket
(via HttpCache) where it replaces the DnsRRResolver. Above
SSLClientSocket, it's plumbed in addition to the DnsRRResolver because
the later will end up going into SSLHostInfo in the future.
At the moment, ChromeDnsCertProvenanceCheckerContext is just a skeleton
to avoid putting too much real code in a plumbing job.
BUG=none
TEST=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66623 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'jingle')
-rw-r--r-- | jingle/notifier/base/xmpp_client_socket_factory.cc | 4 | ||||
-rw-r--r-- | jingle/notifier/base/xmpp_client_socket_factory.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/jingle/notifier/base/xmpp_client_socket_factory.cc b/jingle/notifier/base/xmpp_client_socket_factory.cc index c290325..0de822a 100644 --- a/jingle/notifier/base/xmpp_client_socket_factory.cc +++ b/jingle/notifier/base/xmpp_client_socket_factory.cc @@ -35,10 +35,10 @@ net::SSLClientSocket* XmppClientSocketFactory::CreateSSLClientSocket( const net::HostPortPair& host_and_port, const net::SSLConfig& ssl_config, net::SSLHostInfo* ssl_host_info, - net::DnsRRResolver* dnsrr_resolver) { + net::DnsCertProvenanceChecker* dns_cert_checker) { return client_socket_factory_->CreateSSLClientSocket( transport_socket, host_and_port, ssl_config, ssl_host_info, - dnsrr_resolver); + dns_cert_checker); } } // namespace diff --git a/jingle/notifier/base/xmpp_client_socket_factory.h b/jingle/notifier/base/xmpp_client_socket_factory.h index e629be6..fef3bfa 100644 --- a/jingle/notifier/base/xmpp_client_socket_factory.h +++ b/jingle/notifier/base/xmpp_client_socket_factory.h @@ -10,7 +10,7 @@ #include "net/socket/client_socket_factory.h" namespace net { -class DnsRRResolver; +class DnsCertProvenanceChecker; class HostPortPair; class SSLHostInfo; } @@ -33,7 +33,8 @@ class XmppClientSocketFactory : public net::ClientSocketFactory { virtual net::SSLClientSocket* CreateSSLClientSocket( net::ClientSocketHandle* transport_socket, const net::HostPortPair& host_and_port, const net::SSLConfig& ssl_config, - net::SSLHostInfo* ssl_host_info, net::DnsRRResolver* dnsrr_resolver); + net::SSLHostInfo* ssl_host_info, + net::DnsCertProvenanceChecker* dns_cert_checker); private: net::ClientSocketFactory* const client_socket_factory_; |