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

Issue 519533002: Initial PlzNavigate RDH-side logic. (Closed)

Created:
6 years, 3 months ago by davidben
Modified:
6 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Initial PlzNavigate RDH-side logic. [Closed in favor of split up versions. See comment #14] Adds a NavigationURLLoader class to mediate between UI and IO thread. It owns the request up until the response starts, at which point ownership is transferred to a StreamHandle which resolves to the body. The request itself is missing much of the handlers and context which are normally attached to the request. That will need to be resolved later, ideally in a way that allows most consumers to treat navigation and subresource requests the same. StreamHandle is split up between a StreamInfo struct and the handle itself so that consumers may retain ownership of the stream and release the response information once sent to a child process. BUG=376015

Patch Set 1 #

Patch Set 2 : ResourceResponse #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : NavigationURLLoader (content_unittests doesn't build) #

Patch Set 6 : fix content_unittests #

Patch Set 7 : #

Patch Set 8 : Tests and hopefully appease windows #

Patch Set 9 : More Windows build #

Patch Set 10 : More Windows compile. #

Patch Set 11 : #

Total comments: 35

Patch Set 12 : lots of comments #

Patch Set 13 : Rebase #

Total comments: 58

Patch Set 14 : rebase #

Patch Set 15 : various comments #

Patch Set 16 : Monster rebase the first #

Patch Set 17 : Monster rebase the second. #

Patch Set 18 : Stray diff. #

Patch Set 19 : More stray diff #

Patch Set 20 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1996 lines, -407 lines) Patch
M chrome/browser/extensions/api/streams_private/streams_private_api.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/streams_private/streams_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
D content/browser/frame_host/navigation_before_commit_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -46 lines 0 comments Download
M content/browser/frame_host/navigation_before_commit_info.cc View 1 2 3 4 5 1 chunk +0 lines, -12 lines 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +21 lines, -16 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +31 lines, -51 lines 0 comments Download
M content/browser/frame_host/navigation_request_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +10 lines, -25 lines 0 comments Download
M content/browser/frame_host/navigator_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 9 chunks +201 lines, -54 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +8 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +1 line, -1 line 0 comments Download
A content/browser/loader/navigation_resource_handler.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +67 lines, -0 lines 0 comments Download
A content/browser/loader/navigation_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +152 lines, -0 lines 0 comments Download
A content/browser/loader/navigation_url_loader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +93 lines, -0 lines 0 comments Download
A content/browser/loader/navigation_url_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +37 lines, -0 lines 0 comments Download
A content/browser/loader/navigation_url_loader_core.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +104 lines, -0 lines 0 comments Download
A content/browser/loader/navigation_url_loader_core.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +164 lines, -0 lines 0 comments Download
A content/browser/loader/navigation_url_loader_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +36 lines, -0 lines 0 comments Download
A content/browser/loader/navigation_url_loader_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +39 lines, -0 lines 0 comments Download
A content/browser/loader/navigation_url_loader_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +34 lines, -0 lines 0 comments Download
A content/browser/loader/navigation_url_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +381 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -13 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +214 lines, -37 lines 0 comments Download
M content/browser/loader/stream_resource_handler.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -9 lines 0 comments Download
M content/browser/loader/stream_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -47 lines 0 comments Download
A content/browser/loader/stream_writer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +83 lines, -0 lines 0 comments Download
A content/browser/loader/stream_writer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +81 lines, -0 lines 0 comments Download
M content/browser/loader/upload_data_stream_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/streams/stream.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/streams/stream.cc View 1 1 chunk +2 lines, -8 lines 0 comments Download
M content/browser/streams/stream_handle_impl.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -10 lines 0 comments Download
M content/browser/streams/stream_handle_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +2 lines, -29 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +13 lines, -2 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/browser/stream_handle.h View 1 2 chunks +3 lines, -15 lines 0 comments Download
A content/public/browser/stream_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +47 lines, -0 lines 0 comments Download
A content/public/browser/stream_info.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +16 lines, -0 lines 0 comments Download
M content/public/common/resource_devtools_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/resource_devtools_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +11 lines, -0 lines 0 comments Download
M content/public/common/resource_response.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -2 lines 0 comments Download
A content/public/common/resource_response.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +51 lines, -0 lines 0 comments Download
M content/public/common/resource_response_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (1 generated)
davidben
This touches quite a lot of things. I'll add OWNERS coverage once you four are ...
6 years, 3 months ago (2014-09-10 18:38:18 UTC) #2
mmenke
On 2014/09/10 18:38:18, David Benjamin wrote: > This touches quite a lot of things. I'll ...
6 years, 3 months ago (2014-09-11 12:52:55 UTC) #3
davidben
On 2014/09/11 12:52:55, mmenke wrote: > On 2014/09/10 18:38:18, David Benjamin wrote: > > This ...
6 years, 3 months ago (2014-09-11 14:14:23 UTC) #4
clamy
Thanks! After a first pass I have a few question/comments. https://chromiumcodereview.appspot.com/519533002/diff/200001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://chromiumcodereview.appspot.com/519533002/diff/200001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode622 ...
6 years, 3 months ago (2014-09-12 20:51:26 UTC) #5
Zachary Kuznia
https://codereview.chromium.org/519533002/diff/200001/content/public/browser/stream_info.cc File content/public/browser/stream_info.cc (right): https://codereview.chromium.org/519533002/diff/200001/content/public/browser/stream_info.cc#newcode5 content/public/browser/stream_info.cc:5: #include "content/public/browser/stream_info.h" Try to dial down the copy detection ...
6 years, 3 months ago (2014-09-12 21:14:20 UTC) #6
davidben
Lots of changes, largely around streams and threading. StreamInfo is back to looking like the ...
6 years, 3 months ago (2014-09-19 18:30:50 UTC) #7
Zachary Kuznia
Streams LGTM
6 years, 3 months ago (2014-09-19 19:50:54 UTC) #8
clamy
Thanks! LGTM https://chromiumcodereview.appspot.com/519533002/diff/200001/content/browser/loader/navigation_url_loader_unittest.cc File content/browser/loader/navigation_url_loader_unittest.cc (right): https://chromiumcodereview.appspot.com/519533002/diff/200001/content/browser/loader/navigation_url_loader_unittest.cc#newcode160 content/browser/loader/navigation_url_loader_unittest.cc:160: FrameHostMsg_BeginNavigation_Params params; On 2014/09/19 18:30:50, David Benjamin ...
6 years, 3 months ago (2014-09-22 21:11:01 UTC) #9
davidben
https://chromiumcodereview.appspot.com/519533002/diff/240001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://chromiumcodereview.appspot.com/519533002/diff/240001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1851 content/browser/loader/resource_dispatcher_host_impl.cc:1851: BeginRequestInternal(new_request.Pass(), handler.Pass()); On 2014/09/22 21:11:01, clamy wrote: > nit: ...
6 years, 3 months ago (2014-09-22 21:19:56 UTC) #10
mmenke
I'm still very slowly making my way through this. I hope to finally manage a ...
6 years, 3 months ago (2014-09-23 17:22:46 UTC) #11
nasko
Initial pass through the CL and a bunch of comments to ensure I understand it ...
6 years, 3 months ago (2014-09-24 21:15:34 UTC) #12
davidben
Okay, several monster rebases later, that's through. In the interest of paring down this CL, ...
6 years, 2 months ago (2014-10-03 16:27:53 UTC) #13
davidben
6 years, 2 months ago (2014-10-03 16:54:28 UTC) #14
First piece to be split out:
https://codereview.chromium.org/625993002/

Powered by Google App Engine
This is Rietveld 408576698