[net] Populate DNS resolution details from ConnectJob [chromium/src : main]

0 views
Skip to first unread message

Kenichi Ishibashi (Gerrit)

unread,
Apr 3, 2026, 4:11:42 AM (3 days ago) Apr 3
to Adam Rice, Chromium LUCI CQ, chromium...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org
Attention needed from Adam Rice

Kenichi Ishibashi added 3 comments

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Kenichi Ishibashi . resolved

ricea@: The 3rd CL for exposing DNS resolution details. This is the last one I want you to review before branch cut.

File net/http/http_basic_stream.cc
Line 201, Patchset 4 (Latest): if (state_.connection()) {
Kenichi Ishibashi . unresolved

Consider adding `CHECK(load_timing_internal_info);` here before dereferencing the pointer, matching the pattern in `SpdyHttpStream::PopulateLoadTimingInternalInfo` (which currently protects from potential crashes if this is called with a null pointer).

Kenichi Ishibashi

(This is AI review comment, I'll address later)

File net/spdy/spdy_session.h
Line 578, Patchset 4 (Latest): std::optional<ResolutionDetails> GetResolutionDetails() const;
Kenichi Ishibashi . unresolved

This header relies on the transitive inclusion of `net/dns/resolution_details.h` (via `stream_socket_handle.h`) to resolve `ResolutionDetails`. Consider including `net/dns/resolution_details.h` explicitly since it's used in the return type here.

Kenichi Ishibashi

(This is AI review comment, I'll address later)

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Rice
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ibc44fd7ca62e4fc68204e9a4065eeaeff1a0fe09
Gerrit-Change-Number: 7728463
Gerrit-PatchSet: 4
Gerrit-Owner: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-Reviewer: Adam Rice <ri...@chromium.org>
Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-Attention: Adam Rice <ri...@chromium.org>
Gerrit-Comment-Date: Fri, 03 Apr 2026 08:11:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kenichi Ishibashi <ba...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Andrew Williams (Gerrit)

unread,
Apr 3, 2026, 11:15:10 PM (2 days ago) Apr 3
to Kenichi Ishibashi, Adam Rice, Chromium LUCI CQ, chromium...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org
Attention needed from Adam Rice and Kenichi Ishibashi

Andrew Williams added 4 comments

Patchset-level comments
Andrew Williams . resolved

Leaving some feedback

File net/dns/mock_host_resolver.h
Line 430, Patchset 4 (Latest): default_resolution_details_ = details;
Andrew Williams . unresolved

nit: std::move

File net/socket/connect_job.h
Line 252, Patchset 4 (Latest): // Returns the details of the host resolution if available.
Andrew Williams . unresolved

nit: can we elaborate on when this will return std::nullopt?

File net/spdy/spdy_http_stream_unittest.cc
Line 295, Patchset 4 (Latest):}
Andrew Williams . unresolved

It might be worth having a second stream test for SPDY as well

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Rice
  • Kenichi Ishibashi
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ibc44fd7ca62e4fc68204e9a4065eeaeff1a0fe09
Gerrit-Change-Number: 7728463
Gerrit-PatchSet: 4
Gerrit-Owner: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-Reviewer: Adam Rice <ri...@chromium.org>
Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-CC: Andrew Williams <awi...@chromium.org>
Gerrit-Attention: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-Attention: Adam Rice <ri...@chromium.org>
Gerrit-Comment-Date: Sat, 04 Apr 2026 03:15:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Andrew Williams (Gerrit)

unread,
Apr 3, 2026, 11:18:06 PM (2 days ago) Apr 3
to Kenichi Ishibashi, Adam Rice, Chromium LUCI CQ, chromium...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org
Attention needed from Adam Rice and Kenichi Ishibashi

Andrew Williams added 1 comment

File net/socket/stream_socket_handle.h
Line 73, Patchset 4 (Latest): void set_resolution_details(std::optional<ResolutionDetails> details) {
Andrew Williams . unresolved

optional: if you did want to mirror how set_connect_timing takes a reference as its parameter, this could use `base::optional_ref`

Gerrit-Comment-Date: Sat, 04 Apr 2026 03:17:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Kouhei Ueno (Gerrit)

unread,
10:30 PM (1 hour ago) 10:30 PM
to Kenichi Ishibashi, Andrew Williams, Adam Rice, Chromium LUCI CQ, chromium...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org
Attention needed from Adam Rice and Kenichi Ishibashi

Kouhei Ueno voted and added 1 comment

Votes added by Kouhei Ueno

Code-Review+1

1 comment

File net/spdy/spdy_http_stream.cc
Line 214, Patchset 4 (Latest): if (spdy_session_) {
Kouhei Ueno . unresolved

newbie q: is PopulateLoadTimingInternalInfo called at most once? if that's not the case, with this logic, would the `load_timing_internal_info->resolution_details` get stale if the previous call filled it but was null on the second run?

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Rice
  • Kenichi Ishibashi
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ibc44fd7ca62e4fc68204e9a4065eeaeff1a0fe09
    Gerrit-Change-Number: 7728463
    Gerrit-PatchSet: 4
    Gerrit-Owner: Kenichi Ishibashi <ba...@chromium.org>
    Gerrit-Reviewer: Adam Rice <ri...@chromium.org>
    Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
    Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
    Gerrit-CC: Andrew Williams <awi...@chromium.org>
    Gerrit-Attention: Kenichi Ishibashi <ba...@chromium.org>
    Gerrit-Attention: Adam Rice <ri...@chromium.org>
    Gerrit-Comment-Date: Mon, 06 Apr 2026 02:29:53 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages