| 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 #include "net/socket/ssl_client_socket_impl.h" | 5 #include "net/socket/ssl_client_socket_impl.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <openssl/bio.h> | 8 #include <openssl/bio.h> |
| 9 #include <openssl/bytestring.h> | 9 #include <openssl/bytestring.h> |
| 10 #include <openssl/err.h> | 10 #include <openssl/err.h> |
| (...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 } | 879 } |
| 880 | 880 |
| 881 int SSLClientSocketImpl::SetReceiveBufferSize(int32_t size) { | 881 int SSLClientSocketImpl::SetReceiveBufferSize(int32_t size) { |
| 882 return transport_->socket()->SetReceiveBufferSize(size); | 882 return transport_->socket()->SetReceiveBufferSize(size); |
| 883 } | 883 } |
| 884 | 884 |
| 885 int SSLClientSocketImpl::SetSendBufferSize(int32_t size) { | 885 int SSLClientSocketImpl::SetSendBufferSize(int32_t size) { |
| 886 return transport_->socket()->SetSendBufferSize(size); | 886 return transport_->socket()->SetSendBufferSize(size); |
| 887 } | 887 } |
| 888 | 888 |
| 889 int SSLClientSocketImpl::SetDoNotFragment(bool do_not_fragment) { |
| 890 return transport_->socket()->SetDoNotFragment(do_not_fragment); |
| 891 } |
| 892 |
| 889 int SSLClientSocketImpl::Init() { | 893 int SSLClientSocketImpl::Init() { |
| 890 DCHECK(!ssl_); | 894 DCHECK(!ssl_); |
| 891 DCHECK(!transport_bio_); | 895 DCHECK(!transport_bio_); |
| 892 | 896 |
| 893 #if defined(USE_NSS_CERTS) | 897 #if defined(USE_NSS_CERTS) |
| 894 if (ssl_config_.cert_io_enabled) { | 898 if (ssl_config_.cert_io_enabled) { |
| 895 // TODO(davidben): Move this out of SSLClientSocket. See | 899 // TODO(davidben): Move this out of SSLClientSocket. See |
| 896 // https://crbug.com/539520. | 900 // https://crbug.com/539520. |
| 897 EnsureNSSHttpIOInit(); | 901 EnsureNSSHttpIOInit(); |
| 898 } | 902 } |
| (...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2332 if (rv != OK) { | 2336 if (rv != OK) { |
| 2333 net_log_.EndEventWithNetErrorCode(NetLog::TYPE_SSL_CONNECT, rv); | 2337 net_log_.EndEventWithNetErrorCode(NetLog::TYPE_SSL_CONNECT, rv); |
| 2334 return; | 2338 return; |
| 2335 } | 2339 } |
| 2336 | 2340 |
| 2337 net_log_.EndEvent(NetLog::TYPE_SSL_CONNECT, | 2341 net_log_.EndEvent(NetLog::TYPE_SSL_CONNECT, |
| 2338 base::Bind(&NetLogSSLInfoCallback, base::Unretained(this))); | 2342 base::Bind(&NetLogSSLInfoCallback, base::Unretained(this))); |
| 2339 } | 2343 } |
| 2340 | 2344 |
| 2341 } // namespace net | 2345 } // namespace net |
| OLD | NEW |