OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived | 5 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived |
6 // from AuthCertificateCallback() in | 6 // from AuthCertificateCallback() in |
7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. | 7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. |
8 | 8 |
9 /* ***** BEGIN LICENSE BLOCK ***** | 9 /* ***** BEGIN LICENSE BLOCK ***** |
10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 bool ret = (pseudo_connected_ || completed_handshake_) && | 942 bool ret = (pseudo_connected_ || completed_handshake_) && |
943 transport_->socket()->IsConnectedAndIdle(); | 943 transport_->socket()->IsConnectedAndIdle(); |
944 LeaveFunction(""); | 944 LeaveFunction(""); |
945 return ret; | 945 return ret; |
946 } | 946 } |
947 | 947 |
948 int SSLClientSocketNSS::GetPeerAddress(AddressList* address) const { | 948 int SSLClientSocketNSS::GetPeerAddress(AddressList* address) const { |
949 return transport_->socket()->GetPeerAddress(address); | 949 return transport_->socket()->GetPeerAddress(address); |
950 } | 950 } |
951 | 951 |
| 952 const BoundNetLog& SSLClientSocketNSS::NetLog() const { |
| 953 return net_log_; |
| 954 } |
| 955 |
952 void SSLClientSocketNSS::SetSubresourceSpeculation() { | 956 void SSLClientSocketNSS::SetSubresourceSpeculation() { |
953 if (transport_.get() && transport_->socket()) { | 957 if (transport_.get() && transport_->socket()) { |
954 transport_->socket()->SetSubresourceSpeculation(); | 958 transport_->socket()->SetSubresourceSpeculation(); |
955 } else { | 959 } else { |
956 NOTREACHED(); | 960 NOTREACHED(); |
957 } | 961 } |
958 } | 962 } |
959 | 963 |
960 void SSLClientSocketNSS::SetOmniboxSpeculation() { | 964 void SSLClientSocketNSS::SetOmniboxSpeculation() { |
961 if (transport_.get() && transport_->socket()) { | 965 if (transport_.get() && transport_->socket()) { |
(...skipping 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2619 case SSL_CONNECTION_VERSION_TLS1_1: | 2623 case SSL_CONNECTION_VERSION_TLS1_1: |
2620 UpdateConnectionTypeHistograms(CONNECTION_SSL_TLS1_1); | 2624 UpdateConnectionTypeHistograms(CONNECTION_SSL_TLS1_1); |
2621 break; | 2625 break; |
2622 case SSL_CONNECTION_VERSION_TLS1_2: | 2626 case SSL_CONNECTION_VERSION_TLS1_2: |
2623 UpdateConnectionTypeHistograms(CONNECTION_SSL_TLS1_2); | 2627 UpdateConnectionTypeHistograms(CONNECTION_SSL_TLS1_2); |
2624 break; | 2628 break; |
2625 }; | 2629 }; |
2626 } | 2630 } |
2627 | 2631 |
2628 } // namespace net | 2632 } // namespace net |
OLD | NEW |