| 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_pool.h" | 5 #include "net/socket/ssl_client_socket_pool.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 | 494 |
| 495 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SSL_Connection_Latency_2", | 495 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SSL_Connection_Latency_2", |
| 496 connect_duration, | 496 connect_duration, |
| 497 base::TimeDelta::FromMilliseconds(1), | 497 base::TimeDelta::FromMilliseconds(1), |
| 498 base::TimeDelta::FromMinutes(1), | 498 base::TimeDelta::FromMinutes(1), |
| 499 100); | 499 100); |
| 500 | 500 |
| 501 SSLInfo ssl_info; | 501 SSLInfo ssl_info; |
| 502 ssl_socket_->GetSSLInfo(&ssl_info); | 502 ssl_socket_->GetSSLInfo(&ssl_info); |
| 503 | 503 |
| 504 UMA_HISTOGRAM_ENUMERATION( |
| 505 "Net.SSL_Version", |
| 506 SSLConnectionStatusToVersion(ssl_info.connection_status), |
| 507 SSL_CONNECTION_VERSION_MAX); |
| 508 |
| 504 UMA_HISTOGRAM_SPARSE_SLOWLY("Net.SSL_CipherSuite", | 509 UMA_HISTOGRAM_SPARSE_SLOWLY("Net.SSL_CipherSuite", |
| 505 SSLConnectionStatusToCipherSuite( | 510 SSLConnectionStatusToCipherSuite( |
| 506 ssl_info.connection_status)); | 511 ssl_info.connection_status)); |
| 507 | 512 |
| 508 UMA_HISTOGRAM_BOOLEAN( | 513 UMA_HISTOGRAM_BOOLEAN( |
| 509 "Net.RenegotiationExtensionSupported", | 514 "Net.RenegotiationExtensionSupported", |
| 510 (ssl_info.connection_status & | 515 (ssl_info.connection_status & |
| 511 SSL_CONNECTION_NO_RENEGOTIATION_EXTENSION) == 0); | 516 SSL_CONNECTION_NO_RENEGOTIATION_EXTENSION) == 0); |
| 512 | 517 |
| 513 if (ssl_info.handshake_type == SSLInfo::HANDSHAKE_RESUME) { | 518 if (ssl_info.handshake_type == SSLInfo::HANDSHAKE_RESUME) { |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 CHECK(it != messenger_map_.end()); | 853 CHECK(it != messenger_map_.end()); |
| 849 delete it->second; | 854 delete it->second; |
| 850 messenger_map_.erase(it); | 855 messenger_map_.erase(it); |
| 851 } | 856 } |
| 852 | 857 |
| 853 void SSLClientSocketPool::OnSSLConfigChanged() { | 858 void SSLClientSocketPool::OnSSLConfigChanged() { |
| 854 FlushWithError(ERR_NETWORK_CHANGED); | 859 FlushWithError(ERR_NETWORK_CHANGED); |
| 855 } | 860 } |
| 856 | 861 |
| 857 } // namespace net | 862 } // namespace net |
| OLD | NEW |