Change next_proto member type.
commit0d23cf415d4d0f7538750db34aa20297ff5aa169
authorbnc <bnc@chromium.org>
Thu, 11 Dec 2014 14:09:46 +0000 (11 06:09 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 11 Dec 2014 14:10:05 +0000 (11 14:10 +0000)
treefea8156cf60dadfeb602802677b57850975123fc
parent6baaaaf1d7e0e01c5156a5a1717e614cef2f8551
Change next_proto member type.

Change type of next_proto members of HttpNetworkTransaction and SSLConfig from
vector<string> to NextProtoVector.  This offers better type safety and clarity.
Also, when SSLClientConfig needs to remove HTTP/2 protocols due to inadequate
security, it would feel silly having to convert strings back to NextProto.  It
just makes sense to postpone generating strings until very close to the wire.

BUG=436835

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

Cr-Commit-Position: refs/heads/master@{#307894}
net/base/net_log_util.cc
net/http/http_network_session.cc
net/http/http_network_session.h
net/socket/next_proto.cc
net/socket/ssl_client_socket.cc
net/socket/ssl_client_socket.h
net/socket/ssl_client_socket_openssl.cc
net/socket/ssl_client_socket_unittest.cc
net/ssl/ssl_config.h