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.h" | 5 #include "net/socket/ssl_client_socket.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "base/metrics/sparse_histogram.h" | 8 #include "base/metrics/sparse_histogram.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "crypto/ec_private_key.h" | 10 #include "crypto/ec_private_key.h" |
11 #include "net/base/connection_type_histograms.h" | 11 #include "net/base/connection_type_histograms.h" |
12 #include "net/base/host_port_pair.h" | |
13 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
14 #include "net/ssl/channel_id_service.h" | 13 #include "net/ssl/channel_id_service.h" |
15 #include "net/ssl/ssl_cipher_suite_names.h" | 14 #include "net/ssl/ssl_cipher_suite_names.h" |
16 #include "net/ssl/ssl_config_service.h" | 15 #include "net/ssl/ssl_config_service.h" |
17 #include "net/ssl/ssl_connection_status_flags.h" | 16 #include "net/ssl/ssl_connection_status_flags.h" |
18 | 17 |
19 namespace net { | 18 namespace net { |
20 | 19 |
21 SSLClientSocket::SSLClientSocket() | 20 SSLClientSocket::SSLClientSocket() |
22 : was_npn_negotiated_(false), | 21 : was_npn_negotiated_(false), |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } else { | 262 } else { |
264 sample += 500; | 263 sample += 500; |
265 } | 264 } |
266 } else { | 265 } else { |
267 DCHECK_EQ(kExtensionALPN, negotiation_extension_); | 266 DCHECK_EQ(kExtensionALPN, negotiation_extension_); |
268 } | 267 } |
269 UMA_HISTOGRAM_SPARSE_SLOWLY("Net.SSLProtocolNegotiation", sample); | 268 UMA_HISTOGRAM_SPARSE_SLOWLY("Net.SSLProtocolNegotiation", sample); |
270 } | 269 } |
271 | 270 |
272 } // namespace net | 271 } // namespace net |
OLD | NEW |