| OLD | NEW |
| 1 // Copyright (c) 2012 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 // TODO(ukai): code is similar with http_network_transaction.cc. We should | 5 // TODO(ukai): code is similar with http_network_transaction.cc. We should |
| 6 // think about ways to share code, if possible. | 6 // think about ways to share code, if possible. |
| 7 | 7 |
| 8 #include "net/socket_stream/socket_stream.h" | 8 #include "net/socket_stream/socket_stream.h" |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1333 return OK; | 1333 return OK; |
| 1334 } | 1334 } |
| 1335 | 1335 |
| 1336 if (!delegate_) | 1336 if (!delegate_) |
| 1337 return result; | 1337 return result; |
| 1338 | 1338 |
| 1339 SSLInfo ssl_info; | 1339 SSLInfo ssl_info; |
| 1340 ssl_socket->GetSSLInfo(&ssl_info); | 1340 ssl_socket->GetSSLInfo(&ssl_info); |
| 1341 | 1341 |
| 1342 TransportSecurityState* state = context_->transport_security_state(); | 1342 TransportSecurityState* state = context_->transport_security_state(); |
| 1343 const bool fatal = | 1343 const bool fatal = state && state->ShouldSSLErrorsBeFatal(url_.host()); |
| 1344 state && | |
| 1345 state->ShouldSSLErrorsBeFatal( | |
| 1346 url_.host(), | |
| 1347 SSLConfigService::IsSNIAvailable(context_->ssl_config_service())); | |
| 1348 | 1344 |
| 1349 delegate_->OnSSLCertificateError(this, ssl_info, fatal); | 1345 delegate_->OnSSLCertificateError(this, ssl_info, fatal); |
| 1350 return ERR_IO_PENDING; | 1346 return ERR_IO_PENDING; |
| 1351 } | 1347 } |
| 1352 | 1348 |
| 1353 CookieStore* SocketStream::cookie_store() const { | 1349 CookieStore* SocketStream::cookie_store() const { |
| 1354 return cookie_store_.get(); | 1350 return cookie_store_.get(); |
| 1355 } | 1351 } |
| 1356 | 1352 |
| 1357 } // namespace net | 1353 } // namespace net |
| OLD | NEW |