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

Issue 2817033002: Plumb the net::SSLInfo to the browser process when it's using the network service. (Closed)

Created:
3 years, 8 months ago by jam
Modified:
3 years, 8 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, kinuko+watch, jsbell+serviceworker_chromium.org, tzik, abarth-chromium, darin-cc_chromium.org, loading-reviews_chromium.org, blink-worker-reviews_chromium.org, mlamouri+watch-content_chromium.org, Randy Smith (Not in Mondays), nhiroki, michaeln, shimazu+serviceworker_chromium.org, serviceworker-reviews, Aaron Boodman, kinuko+serviceworker, horo+watch_chromium.org, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Plumb the net::SSLInfo to the browser process when it's using the network service. This fixes the page lock icon not showing the correct indicators. Since the data is large, only send it to the consumer if they request it at URLLoader creation time. Only the browser process would request it. BUG=598073 Review-Url: https://codereview.chromium.org/2817033002 Cr-Commit-Position: refs/heads/master@{#464800} Committed: https://chromium.googlesource.com/chromium/src/+/33d897e97d8a3fc40ddf1d0b9ca578041724873a

Patch Set 1 #

Patch Set 2 : add tests #

Total comments: 20

Patch Set 3 : review comments #

Total comments: 2

Patch Set 4 : review comments #

Total comments: 1

Patch Set 5 : merge #

Total comments: 9

Patch Set 6 : merge #

Patch Set 7 : add net::SSLInfo test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+423 lines, -56 lines) Patch
M content/browser/loader/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/mojo_async_resource_handler_unittest.cc View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/loader/navigation_resource_handler.h View 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/loader/navigation_resource_handler.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M content/browser/loader/navigation_resource_throttle.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_url_loader_network_service.h View 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/loader/navigation_url_loader_network_service.cc View 1 2 3 4 4 chunks +7 lines, -2 lines 0 comments Download
M content/browser/loader/resource_message_filter.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/resource_message_filter.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/loader/test_url_loader_client.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/loader/test_url_loader_client.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl_unittest.cc View 1 2 10 chunks +14 lines, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M content/child/url_loader_client_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/child/url_loader_client_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/child/url_loader_client_impl_unittest.cc View 1 2 3 16 chunks +16 lines, -15 lines 0 comments Download
M content/common/common_param_traits_unittest.cc View 1 2 3 4 5 6 2 chunks +105 lines, -0 lines 0 comments Download
M content/common/resource_messages.h View 1 2 3 4 5 6 3 chunks +37 lines, -0 lines 0 comments Download
M content/common/resource_messages.cc View 1 2 3 4 5 6 1 chunk +130 lines, -0 lines 0 comments Download
A content/common/ssl_info.typemap View 1 chunk +12 lines, -0 lines 0 comments Download
M content/common/typemaps.gni View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/url_loader.mojom View 2 chunks +8 lines, -2 lines 0 comments Download
M content/common/url_loader_factory.mojom View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M content/network/network_service_url_loader_factory_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/network/network_service_url_loader_factory_impl.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/network/url_loader_impl.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/network/url_loader_impl.cc View 1 2 3 4 5 3 chunks +7 lines, -1 line 0 comments Download
M content/network/url_loader_unittest.cc View 1 2 2 chunks +40 lines, -6 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 60 (38 generated)
jam
Daniel: content/common Yuzhu: the reste
3 years, 8 months ago (2017-04-13 20:00:54 UTC) #14
yzshen1
https://codereview.chromium.org/2817033002/diff/80001/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2817033002/diff/80001/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode164 content/browser/service_worker/service_worker_fetch_dispatcher.cc:164: client_->OnReceiveResponse(head, std::move(ssl_info), No need to use std::move(). https://codereview.chromium.org/2817033002/diff/80001/content/common/resource_messages.cc File ...
3 years, 8 months ago (2017-04-13 20:43:51 UTC) #15
jam
https://codereview.chromium.org/2817033002/diff/80001/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2817033002/diff/80001/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode164 content/browser/service_worker/service_worker_fetch_dispatcher.cc:164: client_->OnReceiveResponse(head, std::move(ssl_info), On 2017/04/13 20:43:50, yzshen1 wrote: > No ...
3 years, 8 months ago (2017-04-13 21:07:29 UTC) #17
dcheng
https://codereview.chromium.org/2817033002/diff/80001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2817033002/diff/80001/content/browser/loader/mojo_async_resource_handler.cc#newcode199 content/browser/loader/mojo_async_resource_handler.cc:199: base::Optional<net::SSLInfo>(), Nit: base::nullopt https://codereview.chromium.org/2817033002/diff/80001/content/child/resource_dispatcher.cc File content/child/resource_dispatcher.cc (right): https://codereview.chromium.org/2817033002/diff/80001/content/child/resource_dispatcher.cc#newcode768 content/child/resource_dispatcher.cc:768: ...
3 years, 8 months ago (2017-04-13 21:12:15 UTC) #19
yzshen1
LGTM https://codereview.chromium.org/2817033002/diff/80001/content/common/resource_messages.cc File content/common/resource_messages.cc (right): https://codereview.chromium.org/2817033002/diff/80001/content/common/resource_messages.cc#newcode54 content/common/resource_messages.cc:54: cert->Persist(&temp); On 2017/04/13 21:12:15, dcheng wrote: > On ...
3 years, 8 months ago (2017-04-13 21:19:34 UTC) #20
mmenke
https://codereview.chromium.org/2817033002/diff/100001/content/network/url_loader_unittest.cc File content/network/url_loader_unittest.cc (right): https://codereview.chromium.org/2817033002/diff/100001/content/network/url_loader_unittest.cc#newcode129 content/network/url_loader_unittest.cc:129: ASSERT_TRUE(!!client.ssl_info()->cert); Should we check that the data is correct ...
3 years, 8 months ago (2017-04-13 21:36:46 UTC) #22
jam
https://codereview.chromium.org/2817033002/diff/80001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2817033002/diff/80001/content/browser/loader/mojo_async_resource_handler.cc#newcode199 content/browser/loader/mojo_async_resource_handler.cc:199: base::Optional<net::SSLInfo>(), On 2017/04/13 21:12:15, dcheng wrote: > Nit: base::nullopt ...
3 years, 8 months ago (2017-04-13 23:04:22 UTC) #23
mmenke
[+davidben]: Don't suppose you know how to very that we're getting a sane SSLInfo from ...
3 years, 8 months ago (2017-04-13 23:08:46 UTC) #26
dcheng
ipc lgtm I audited X509Certificate::CreateFromPickle as best as I could and it seems ok; there's ...
3 years, 8 months ago (2017-04-14 01:11:10 UTC) #32
Ryan Sleevi
I would prefer this not land as-is, as it seems a very dangerous pattern that ...
3 years, 8 months ago (2017-04-14 01:47:38 UTC) #36
jam
https://codereview.chromium.org/2817033002/diff/140001/content/common/resource_messages.cc File content/common/resource_messages.cc (right): https://codereview.chromium.org/2817033002/diff/140001/content/common/resource_messages.cc#newcode54 content/common/resource_messages.cc:54: cert->Persist(&temp); On 2017/04/14 01:47:38, Ryan Sleevi wrote: > I'll ...
3 years, 8 months ago (2017-04-14 02:34:14 UTC) #37
Ryan Sleevi
Hi John, I'm not really sure that addresses my comments. It feels like your response ...
3 years, 8 months ago (2017-04-14 14:53:26 UTC) #42
davidben
I'm probably woefully out of date here, but doesn't URLResponseHead already contain bits of this ...
3 years, 8 months ago (2017-04-14 15:10:34 UTC) #43
mmenke
On 2017/04/14 15:10:34, davidben wrote: > I'm probably woefully out of date here, but doesn't ...
3 years, 8 months ago (2017-04-14 15:16:25 UTC) #44
davidben
On 2017/04/14 15:16:25, mmenke wrote: > On 2017/04/14 15:10:34, davidben wrote: > > I'm probably ...
3 years, 8 months ago (2017-04-14 15:37:19 UTC) #45
jam
On 2017/04/14 14:53:26, Ryan Sleevi wrote: > Hi John, > > I'm not really sure ...
3 years, 8 months ago (2017-04-14 15:38:26 UTC) #46
jam
On 2017/04/14 15:16:25, mmenke wrote: > On 2017/04/14 15:10:34, davidben wrote: > > I'm probably ...
3 years, 8 months ago (2017-04-14 15:38:31 UTC) #47
Ryan Sleevi
On 2017/04/14 15:38:26, jam wrote: > Just to be clear, that wasn't what I meant ...
3 years, 8 months ago (2017-04-14 15:49:46 UTC) #48
jam
On 2017/04/14 15:49:46, Ryan Sleevi wrote: > On 2017/04/14 15:38:26, jam wrote: > > Just ...
3 years, 8 months ago (2017-04-14 17:21:04 UTC) #51
Ryan Sleevi
lgtm
3 years, 8 months ago (2017-04-14 19:00:09 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2817033002/180001
3 years, 8 months ago (2017-04-14 21:20:29 UTC) #57
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 21:29:44 UTC) #60
Message was sent while issue was closed.
Committed patchset #7 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/33d897e97d8a3fc40ddf1d0b9ca5...

Powered by Google App Engine
This is Rietveld 408576698