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

Issue 16501002: Give more request types a TransportSecurityState. (Closed)

Created:
7 years, 6 months ago by palmer
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam
Visibility:
Public.

Description

Give more request types a TransportSecurityState. DCHECK on NULL TransportSecurityState, as a precursor to a real CHECK. It should be an error to try to connect with an SSL client socket without having a live TSS. BUG=246724 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206013

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix another call site; resolve nit. #

Patch Set 3 : Fix remoting call site. #

Patch Set 4 : Fix socket_stream call site. #

Patch Set 5 : Fix many more call sites. #

Patch Set 6 : One last? call site. #

Patch Set 7 : Fix Android build. #

Patch Set 8 : Moar call sites. #

Total comments: 3

Patch Set 9 : Resolve merge conflict after rebase. #

Total comments: 1

Patch Set 10 : Enforce CalledOnValidThread in all non-static methods. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -7 lines) Patch
M chrome/browser/chromeos/web_socket_proxy.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/net/connection_tester.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/net/connection_tester_unittest.cc View 1 2 3 4 4 chunks +6 lines, -0 lines 0 comments Download
M chrome/service/net/service_url_request_context.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_message_filter.h View 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_message_filter.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_socket.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/shell_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -0 lines 0 comments Download
M jingle/glue/chrome_async_socket_unittest.cc View 1 4 chunks +5 lines, -1 line 0 comments Download
M jingle/glue/proxy_resolving_client_socket.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/http_network_layer_unittest.cc View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M net/http/http_network_transaction_spdy2_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M net/http/http_network_transaction_spdy3_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 1 2 3 4 4 chunks +5 lines, -0 lines 0 comments Download
M net/http/transport_security_state.cc View 1 2 3 4 5 6 7 8 9 9 chunks +15 lines, -1 line 0 comments Download
M net/proxy/proxy_script_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -0 lines 0 comments Download
M net/quic/quic_network_transaction_unittest.cc View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_openssl_unittest.cc View 1 2 3 4 5 6 3 chunks +5 lines, -1 line 0 comments Download
M net/socket/ssl_client_socket_pool_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_unittest.cc View 1 3 chunks +5 lines, -1 line 0 comments Download
M net/socket/ssl_server_socket_unittest.cc View 1 2 3 4 4 chunks +5 lines, -1 line 0 comments Download
M net/socket_stream/socket_stream.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M net/socket_stream/socket_stream.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M net/spdy/spdy_test_util_common.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M net/spdy/spdy_test_util_common.cc View 1 2 3 4 5 6 7 8 9 5 chunks +6 lines, -0 lines 0 comments Download
M net/tools/fetch/fetch_client.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -0 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -0 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/url_request_context.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/ssl_hmac_channel_authenticator.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M remoting/protocol/ssl_hmac_channel_authenticator.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M webkit/support/test_shell_request_context.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
palmer
Is this along the lines of how I should proceed?
7 years, 6 months ago (2013-06-05 22:22:03 UTC) #1
Ryan Sleevi
Yup, looks like you're on the right path. I've added raymes/ for the Pepper stuff. ...
7 years, 6 months ago (2013-06-05 22:54:48 UTC) #2
Ryan Sleevi
net/ LGTM, mod nits. https://codereview.chromium.org/16501002/diff/1/net/socket/ssl_client_socket.h File net/socket/ssl_client_socket.h (left): https://codereview.chromium.org/16501002/diff/1/net/socket/ssl_client_socket.h#oldcode22 net/socket/ssl_client_socket.h:22: class TransportSecurityState; This change shouldn't ...
7 years, 6 months ago (2013-06-05 22:56:00 UTC) #3
raymes
What impact could this have on existing users of SSL in pepper? On Wed, Jun ...
7 years, 6 months ago (2013-06-05 23:09:23 UTC) #4
Ryan Sleevi
On 2013/06/05 23:09:23, raymes wrote: > What impact could this have on existing users of ...
7 years, 6 months ago (2013-06-05 23:17:25 UTC) #5
raymes
Sorry I should have mentioned. The existing users that I know of are Chromoting and ...
7 years, 6 months ago (2013-06-05 23:35:18 UTC) #6
palmer
https://codereview.chromium.org/16501002/diff/1/net/socket/ssl_client_socket.h File net/socket/ssl_client_socket.h (left): https://codereview.chromium.org/16501002/diff/1/net/socket/ssl_client_socket.h#oldcode22 net/socket/ssl_client_socket.h:22: class TransportSecurityState; On 2013/06/05 22:56:00, Ryan Sleevi wrote: > ...
7 years, 6 months ago (2013-06-05 23:50:15 UTC) #7
palmer
Adding some more people for OWNERS review: derat: chrome/browser/chromeos/web_socket_proxy.cc cbentzel, agl: chrome/browser/net jochen: content/shell ajwong: ...
7 years, 6 months ago (2013-06-07 01:24:23 UTC) #8
Daniel Erat
LGTM for chrome/browser/chromeos/web_socket_proxy.cc
7 years, 6 months ago (2013-06-07 01:38:17 UTC) #9
tkent
lgtm for webkit/support/
7 years, 6 months ago (2013-06-07 02:33:45 UTC) #10
jochen (gone - plz use gerrit)
lgtm
7 years, 6 months ago (2013-06-07 10:05:08 UTC) #11
agl
chrome/browser/net: LGTM
7 years, 6 months ago (2013-06-07 15:20:17 UTC) #12
awong
https://codereview.chromium.org/16501002/diff/29001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (left): https://codereview.chromium.org/16501002/diff/29001/jingle/glue/proxy_resolving_client_socket.cc#oldcode59 jingle/glue/proxy_resolving_client_socket.cc:59: // transport_security_state is NULL because it's not thread safe. ...
7 years, 6 months ago (2013-06-07 15:50:40 UTC) #13
palmer
https://codereview.chromium.org/16501002/diff/29001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (left): https://codereview.chromium.org/16501002/diff/29001/jingle/glue/proxy_resolving_client_socket.cc#oldcode59 jingle/glue/proxy_resolving_client_socket.cc:59: // transport_security_state is NULL because it's not thread safe. ...
7 years, 6 months ago (2013-06-07 16:35:06 UTC) #14
palmer
On 2013/06/07 16:35:06, Chromium Palmer wrote: > https://codereview.chromium.org/16501002/diff/29001/jingle/glue/proxy_resolving_client_socket.cc > File jingle/glue/proxy_resolving_client_socket.cc (left): > > https://codereview.chromium.org/16501002/diff/29001/jingle/glue/proxy_resolving_client_socket.cc#oldcode59 ...
7 years, 6 months ago (2013-06-11 17:54:15 UTC) #15
Sergey Ulanov
jingle/glue - lgtm, but I have a question about remoting https://codereview.chromium.org/16501002/diff/41001/remoting/protocol/ssl_hmac_channel_authenticator.cc File remoting/protocol/ssl_hmac_channel_authenticator.cc (right): https://codereview.chromium.org/16501002/diff/41001/remoting/protocol/ssl_hmac_channel_authenticator.cc#newcode105 ...
7 years, 6 months ago (2013-06-11 19:32:29 UTC) #16
agl
https://codereview.chromium.org/16501002/diff/29001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (left): https://codereview.chromium.org/16501002/diff/29001/jingle/glue/proxy_resolving_client_socket.cc#oldcode59 jingle/glue/proxy_resolving_client_socket.cc:59: // transport_security_state is NULL because it's not thread safe. ...
7 years, 6 months ago (2013-06-11 19:42:28 UTC) #17
palmer
> You have to summon me in a more forceful manner than that :) "BY ...
7 years, 6 months ago (2013-06-11 21:22:00 UTC) #18
palmer
To ensure that people don't call into TSS from more than one thread, I added ...
7 years, 6 months ago (2013-06-11 23:17:32 UTC) #19
Sergey Ulanov
On 2013/06/11 21:22:00, Chromium Palmer wrote: > > You have to summon me in a ...
7 years, 6 months ago (2013-06-11 23:18:03 UTC) #20
Sergey Ulanov
On Tue, Jun 11, 2013 at 4:17 PM, <palmer@chromium.org> wrote: > To ensure that people ...
7 years, 6 months ago (2013-06-11 23:25:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/palmer@chromium.org/16501002/56001
7 years, 6 months ago (2013-06-12 19:00:32 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/palmer@chromium.org/16501002/56001
7 years, 6 months ago (2013-06-13 02:50:11 UTC) #23
commit-bot: I haz the power
7 years, 6 months ago (2013-06-13 06:48:13 UTC) #24
Message was sent while issue was closed.
Change committed as 206013

Powered by Google App Engine
This is Rietveld 408576698