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

Issue 1097773003: Clean up NPN/ALPN-related SSLClientSocket bits. (Closed)

Created:
5 years, 8 months ago by davidben
Modified:
5 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up NPN/ALPN-related SSLClientSocket bits. A follow-up will unvirtual and disentangle the other virtual functions there. Have SSLClientSocket implement ALPN-related methods internally using GetNextProto rather than rely on SSLConnectJob to do it. The SPDY-related bit is removed and moved up to callers. Also clean up the MockSSLClientSocket overrides of these functions now that the setters are never called outside of the SSLClientSocket implementation. Instead, SSLSocketDataProvider supplies the input to MockSSLClientSocket::GetNextProto and then the usual logic computes everything else from there. BUG=477847 Committed: https://crrev.com/6974bf71b37bddb36ca8b1feefc013b7c47c105f Cr-Commit-Position: refs/heads/master@{#327066}

Patch Set 1 #

Patch Set 2 : const #

Total comments: 2

Patch Set 3 : typo #

Patch Set 4 : rsleevi comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -163 lines) Patch
M chrome/browser/extensions/api/socket/tls_socket_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 5 chunks +1 line, -12 lines 0 comments Download
M net/http/http_proxy_client_socket_pool.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M net/socket/next_proto.h View 1 chunk +3 lines, -0 lines 0 comments Download
M net/socket/next_proto.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M net/socket/socket_test_util.h View 4 chunks +2 lines, -12 lines 0 comments Download
M net/socket/socket_test_util.cc View 5 chunks +4 lines, -35 lines 0 comments Download
M net/socket/ssl_client_socket.h View 5 chunks +5 lines, -17 lines 0 comments Download
M net/socket/ssl_client_socket.cc View 5 chunks +33 lines, -47 lines 0 comments Download
M net/socket/ssl_client_socket_nss.h View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.h View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/socket/ssl_client_socket_pool.cc View 1 2 3 1 chunk +4 lines, -26 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
davidben
5 years, 8 months ago (2015-04-17 19:12:44 UTC) #2
Ryan Sleevi
LGTM, but just double check with rch@ that the socket pool logic is correct (I ...
5 years, 8 months ago (2015-04-17 19:19:30 UTC) #5
davidben
+jyasskin for chrome/browser/extensions/api/socket/tls_socket_unittest.cc https://codereview.chromium.org/1097773003/diff/20001/net/socket/ssl_client_socket_pool.cc File net/socket/ssl_client_socket_pool.cc (left): https://codereview.chromium.org/1097773003/diff/20001/net/socket/ssl_client_socket_pool.cc#oldcode343 net/socket/ssl_client_socket_pool.cc:343: // If we want spdy over ...
5 years, 8 months ago (2015-04-17 19:43:11 UTC) #7
Jeffrey Yasskin
extensions lgtm.
5 years, 8 months ago (2015-04-17 20:37:10 UTC) #8
davidben
rch: friendly ping
5 years, 8 months ago (2015-04-24 22:44:30 UTC) #9
Ryan Hamilton
LGTM sorry for the delay
5 years, 7 months ago (2015-04-27 15:19:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1097773003/60001
5 years, 7 months ago (2015-04-27 16:06:45 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-04-27 17:52:58 UTC) #15
commit-bot: I haz the power
5 years, 7 months ago (2015-04-27 17:53:50 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6974bf71b37bddb36ca8b1feefc013b7c47c105f
Cr-Commit-Position: refs/heads/master@{#327066}

Powered by Google App Engine
This is Rietveld 408576698