Chromium Code Reviews| Index: net/socket_stream/socket_stream_job.cc |
| =================================================================== |
| --- net/socket_stream/socket_stream_job.cc (revision 84202) |
| +++ net/socket_stream/socket_stream_job.cc (working copy) |
| @@ -22,13 +22,12 @@ |
| SocketStreamJob* SocketStreamJob::CreateSocketStreamJob( |
| const GURL& url, |
| SocketStream::Delegate* delegate, |
| - const URLRequestContext& context) { |
| + TransportSecurityState* sts, |
| + SSLConfigService* ssl) { |
| GURL socket_url(url); |
| TransportSecurityState::DomainState domain_state; |
| - if (url.scheme() == "ws" && |
| - context.transport_security_state() && |
| - context.transport_security_state()->IsEnabledForHost( |
| - &domain_state, url.host(), context.IsSNIAvailable()) && |
| + if (url.scheme() == "ws" && sts && sts->IsEnabledForHost( |
| + &domain_state, url.host(), SSLConfigService::IsSNIAvailable(ssl)) && |
|
willchan no longer on Chromium
2011/05/05 18:00:35
please include ssl_config_service.h for this
Chris Evans
2011/05/05 22:00:56
Done.
|
| domain_state.mode == TransportSecurityState::DomainState::MODE_STRICT) { |
| url_canon::Replacements<char> replacements; |
| static const char kNewScheme[] = "wss"; |