Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Issue 794563003: Change next_proto member type. (Closed)

Created:
6 years ago by Bence
Modified:
6 years ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/0d23cf415d4d0f7538750db34aa20297ff5aa169 Cr-Commit-Position: refs/heads/master@{#307894}

Patch Set 1 #

Patch Set 2 : Work around C++-11-only string::pop_back(). #

Patch Set 3 : Fix type in callback. #

Total comments: 16

Patch Set 4 : First round of comments. #

Patch Set 5 : Oops. #

Patch Set 6 : Remove braces around one line if statements. #

Total comments: 2

Patch Set 7 : Nit in comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -40 lines) Patch
M net/base/net_log_util.cc View 1 2 3 4 5 2 chunks +11 lines, -3 lines 0 comments Download
M net/http/http_network_session.h View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M net/http/http_network_session.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M net/socket/next_proto.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket.h View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket.cc View 1 2 3 1 chunk +15 lines, -15 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 2 3 4 2 chunks +7 lines, -8 lines 0 comments Download
M net/socket/ssl_client_socket_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M net/ssl/ssl_config.h View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (2 generated)
Bence
Ryan: PTAL. Thanks.
6 years ago (2014-12-10 17:51:03 UTC) #2
Ryan Hamilton
thanks for doing this. seems like a nice cleanup. Just a few small comments. https://codereview.chromium.org/794563003/diff/40001/net/base/net_log_util.cc ...
6 years ago (2014-12-10 20:09:00 UTC) #3
Bence
Ryan: PTAL. https://codereview.chromium.org/794563003/diff/40001/net/base/net_log_util.cc File net/base/net_log_util.cc (right): https://codereview.chromium.org/794563003/diff/40001/net/base/net_log_util.cc#newcode460 net/base/net_log_util.cc:460: } On 2014/12/10 20:08:59, Ryan Hamilton wrote: ...
6 years ago (2014-12-10 22:01:24 UTC) #4
Ryan Hamilton
lgtm https://codereview.chromium.org/794563003/diff/100001/net/http/http_network_session.h File net/http/http_network_session.h (right): https://codereview.chromium.org/794563003/diff/100001/net/http/http_network_session.h#newcode208 net/http/http_network_session.h:208: // Populates *next_protos with protocols. nit: put ||s ...
6 years ago (2014-12-10 22:12:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/794563003/120001
6 years ago (2014-12-11 12:24:42 UTC) #7
Bence
Thanks, Ryan. https://codereview.chromium.org/794563003/diff/100001/net/http/http_network_session.h File net/http/http_network_session.h (right): https://codereview.chromium.org/794563003/diff/100001/net/http/http_network_session.h#newcode208 net/http/http_network_session.h:208: // Populates *next_protos with protocols. On 2014/12/10 ...
6 years ago (2014-12-11 12:25:09 UTC) #8
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years ago (2014-12-11 14:09:56 UTC) #9
commit-bot: I haz the power
6 years ago (2014-12-11 14:10:37 UTC) #10
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0d23cf415d4d0f7538750db34aa20297ff5aa169
Cr-Commit-Position: refs/heads/master@{#307894}

Powered by Google App Engine
This is Rietveld 408576698