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

Issue 2813243002: network service: pass PlzNavigate resulting data via mojo data pipe (Closed)

Created:
3 years, 8 months ago by scottmg
Modified:
3 years, 8 months ago
Reviewers:
kinuko, jam, dcheng
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, jam, Randy Smith (Not in Mondays), yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, loading-reviews_chromium.org, darin (slow to review), mmenke
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

network service: pass PlzNavigate resulting data via mojo data pipe Mostly Kinuko's work from https://codereview.chromium.org/2797443005/ ! For now, maintains the old/current path of passing the data from PlzNav via a stream and adds the mojo data pipe as another option. This is to avoid changing anything that might affect PlzNav performance, etc. while it is in the middle of being launched. BUG=598073, 705744 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2813243002 Cr-Commit-Position: refs/heads/master@{#464180} Committed: https://chromium.googlesource.com/chromium/src/+/efb697309fb4c64a99e8c38b0448a4b4bb97886a

Patch Set 1 #

Total comments: 7

Patch Set 2 : one ipc #

Patch Set 3 : fix+comment #

Total comments: 4

Patch Set 4 : . #

Total comments: 14

Patch Set 5 : tests #

Patch Set 6 : review fixes #

Patch Set 7 : ahem #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -35 lines) Patch
M content/browser/frame_host/navigation_request.h View 3 chunks +6 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 4 chunks +7 lines, -4 lines 0 comments Download
M content/browser/loader/navigation_url_loader_delegate.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/loader/navigation_url_loader_network_service.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/navigation_url_loader_network_service.cc View 1 2 3 4 5 3 chunks +19 lines, -3 lines 0 comments Download
M content/child/resource_dispatcher.h View 3 chunks +7 lines, -1 line 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 3 chunks +47 lines, -1 line 0 comments Download
M content/child/resource_dispatcher_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/child/url_loader_client_impl_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/child/url_response_body_consumer_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/child/web_url_loader_impl.h View 3 chunks +4 lines, -0 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 4 chunks +21 lines, -2 lines 0 comments Download
M content/child/web_url_loader_impl_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/common/content_param_traits.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 1 chunk +8 lines, -6 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/test/test_navigation_url_loader.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/test/test_navigation_url_loader_delegate.h View 3 chunks +3 lines, -0 lines 0 comments Download
M content/test/test_navigation_url_loader_delegate.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M content/test/test_render_frame.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M ipc/ipc_mojo_param_traits.h View 2 chunks +12 lines, -0 lines 0 comments Download
M ipc/ipc_mojo_param_traits.cc View 1 2 3 4 5 2 chunks +59 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (24 generated)
jam
Thanks Kinuko for writing this! This looks good to me, but the only comment is ...
3 years, 8 months ago (2017-04-12 18:13:45 UTC) #4
scottmg
https://codereview.chromium.org/2813243002/diff/1/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/2813243002/diff/1/content/child/web_url_loader_impl.cc#newcode818 content/child/web_url_loader_impl.cc:818: stream_override_->total_transferred += data_length; On 2017/04/12 18:13:45, jam wrote: > ...
3 years, 8 months ago (2017-04-12 18:42:41 UTC) #5
jam
https://codereview.chromium.org/2813243002/diff/1/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/2813243002/diff/1/content/child/web_url_loader_impl.cc#newcode818 content/child/web_url_loader_impl.cc:818: stream_override_->total_transferred += data_length; On 2017/04/12 18:42:41, scottmg wrote: > ...
3 years, 8 months ago (2017-04-12 20:36:32 UTC) #6
scottmg
https://codereview.chromium.org/2813243002/diff/1/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/2813243002/diff/1/content/common/frame_messages.h#newcode917 content/common/frame_messages.h:917: // Same as FrameMsg_CommitNavigation, but used when --enable-network-service. On ...
3 years, 8 months ago (2017-04-12 20:37:12 UTC) #7
scottmg
On 2017/04/12 20:36:32, jam wrote: > https://codereview.chromium.org/2813243002/diff/1/content/child/web_url_loader_impl.cc > File content/child/web_url_loader_impl.cc (right): > > https://codereview.chromium.org/2813243002/diff/1/content/child/web_url_loader_impl.cc#newcode818 > ...
3 years, 8 months ago (2017-04-12 20:43:10 UTC) #9
scottmg
Daniel, could you take a look at the IPC? content\common\content_param_traits.h content\common\frame_messages.h ipc\ipc_mojo_param_traits.cc ipc\ipc_mojo_param_traits.h
3 years, 8 months ago (2017-04-12 20:45:09 UTC) #11
jam
lgtm https://codereview.chromium.org/2813243002/diff/40001/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/2813243002/diff/40001/content/child/web_url_loader_impl.cc#newcode818 content/child/web_url_loader_impl.cc:818: // Since ResourceDispatcher::ContinueForNavigation called OnComplete nit: i would ...
3 years, 8 months ago (2017-04-12 20:49:17 UTC) #14
scottmg
Thanks https://codereview.chromium.org/2813243002/diff/40001/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/2813243002/diff/40001/content/child/web_url_loader_impl.cc#newcode818 content/child/web_url_loader_impl.cc:818: // Since ResourceDispatcher::ContinueForNavigation called OnComplete On 2017/04/12 20:49:17, ...
3 years, 8 months ago (2017-04-12 20:51:38 UTC) #15
dcheng
ipc lgtm https://codereview.chromium.org/2813243002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2813243002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc#newcode72 content/browser/loader/navigation_url_loader_network_service.cc:72: response_ = new ResourceResponse(); Nit: base::MakeShared<ResourceResponse>(); https://codereview.chromium.org/2813243002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc#newcode107 ...
3 years, 8 months ago (2017-04-12 21:18:16 UTC) #22
scottmg
Thanks! https://codereview.chromium.org/2813243002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2813243002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc#newcode72 content/browser/loader/navigation_url_loader_network_service.cc:72: response_ = new ResourceResponse(); On 2017/04/12 21:18:16, dcheng ...
3 years, 8 months ago (2017-04-12 21:28:51 UTC) #27
dcheng
https://codereview.chromium.org/2813243002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2813243002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc#newcode72 content/browser/loader/navigation_url_loader_network_service.cc:72: response_ = new ResourceResponse(); On 2017/04/12 21:28:50, scottmg wrote: ...
3 years, 8 months ago (2017-04-12 21:31:11 UTC) #28
scottmg
https://codereview.chromium.org/2813243002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2813243002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc#newcode72 content/browser/loader/navigation_url_loader_network_service.cc:72: response_ = new ResourceResponse(); On 2017/04/12 21:31:11, dcheng wrote: ...
3 years, 8 months ago (2017-04-12 21:35:28 UTC) #29
scottmg
Thanks for the patch Kinuko! Sorry for making it uglier to land before we could ...
3 years, 8 months ago (2017-04-12 21:37:20 UTC) #32
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/2813243002/120001
3 years, 8 months ago (2017-04-12 21:38:28 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/efb697309fb4c64a99e8c38b0448a4b4bb97886a
3 years, 8 months ago (2017-04-12 22:38:45 UTC) #39
kinuko
3 years, 8 months ago (2017-04-13 00:25:45 UTC) #40
Message was sent while issue was closed.
lgtm, hope we can clean these up soon too :)

Powered by Google App Engine
This is Rietveld 408576698