Add histogram to track NPN/ALPN.
commit0d28ea5f8316e357734b8d7c8ac2d9a2d02c30b0
authorbnc <bnc@chromium.org>
Mon, 13 Oct 2014 15:15:38 +0000 (13 08:15 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 13 Oct 2014 15:15:52 +0000 (13 15:15 +0000)
tree9286e3402178c0ee55d7e58e0bc3dc7a339c01c6
parent5b91bf70d132d213d78c02e433fadd342c4438f6
Add histogram to track NPN/ALPN.

Add histogram to track
* which TLS extension (NPN or ALPN) is used for protocol negotiation,
* in case of NPN, is there overlap or do we fall back,
* which protocol is selected.

This CL is draft, I still do not know how to call set_protocol_negotiation() in
NSS.  I would love to do that in
SSLClientSocketNSS::Core::HandshakeSucceeded(), but that might not be the on
the same thread.

Review URL: https://codereview.chromium.org/590513002

Cr-Commit-Position: refs/heads/master@{#299303}
net/socket/next_proto.h
net/socket/ssl_client_socket.cc
net/socket/ssl_client_socket.h
net/socket/ssl_client_socket_nss.cc
net/socket/ssl_client_socket_openssl.cc
net/socket/ssl_client_socket_pool.cc
tools/metrics/histograms/histograms.xml