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

Issue 2860903006: Handle webuis when using the network service. (Closed)

Created:
3 years, 7 months ago by jam
Modified:
3 years, 7 months ago
CC:
chromium-reviews, wjmaclean, jam, Randy Smith (Not in Mondays), darin-cc_chromium.org, loading-reviews_chromium.org, mmenke
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle webuis when using the network service. Some notes: -once PlzNavigate and Mojo loading ship, then we can use this code path in production. at that point, URLDataManagerBackend should move to the UI thread which would avoid thread hops -NavigationURLLoaderNetworkService knows about this scheme, but that should be abstracted out later to support other schemes BUG=717714 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2860903006 Cr-Commit-Position: refs/heads/master@{#469848} Committed: https://chromium.googlesource.com/chromium/src/+/8c4edd07d3cf96c44d1995e491f8789a7d38a5fd

Patch Set 1 #

Patch Set 2 : use factory #

Patch Set 3 : handle compression #

Patch Set 4 : handle replacements #

Patch Set 5 : handle subresources #

Total comments: 3

Patch Set 6 : nits #

Total comments: 37

Patch Set 7 : review comments #

Total comments: 5

Patch Set 8 : comments and fix analyze #

Patch Set 9 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+534 lines, -280 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -1 line 0 comments Download
M content/browser/loader/navigation_url_loader_network_service.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/loader/navigation_url_loader_network_service.cc View 1 2 3 4 5 6 6 chunks +44 lines, -19 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 3 4 5 6 2 chunks +1 line, -11 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/tracing/DEPS View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/webui/url_data_manager_backend.h View 1 2 3 4 5 6 5 chunks +23 lines, -15 lines 0 comments Download
M content/browser/webui/url_data_manager_backend.cc View 1 2 3 4 5 6 23 chunks +99 lines, -215 lines 0 comments Download
M content/browser/webui/url_data_manager_backend_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A content/browser/webui/web_ui_url_loader_factory.h View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
A content/browser/webui/web_ui_url_loader_factory.cc View 1 2 3 4 5 6 7 1 chunk +296 lines, -0 lines 0 comments Download
M third_party/zlib/google/compression_utils.h View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/zlib/google/compression_utils.cc View 1 2 3 4 5 6 2 chunks +21 lines, -11 lines 0 comments Download

Messages

Total messages: 59 (46 generated)
yzshen1
https://codereview.chromium.org/2860903006/diff/120001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2860903006/diff/120001/content/browser/loader/navigation_url_loader_network_service.cc#newcode227 content/browser/loader/navigation_url_loader_network_service.cc:227: ResourceRequest* request) { Why is it necessary to have ...
3 years, 7 months ago (2017-05-05 18:06:21 UTC) #27
jam
https://codereview.chromium.org/2860903006/diff/120001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2860903006/diff/120001/content/browser/loader/navigation_url_loader_network_service.cc#newcode227 content/browser/loader/navigation_url_loader_network_service.cc:227: ResourceRequest* request) { On 2017/05/05 18:06:21, yzshen1 wrote: > ...
3 years, 7 months ago (2017-05-05 18:28:56 UTC) #29
scottmg
Good stuff, glad this works relatively well. https://codereview.chromium.org/2860903006/diff/140001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2860903006/diff/140001/content/browser/frame_host/render_frame_host_impl.cc#newcode3052 content/browser/frame_host/render_frame_host_impl.cc:3052: commit_data.url_loader_factory = ...
3 years, 7 months ago (2017-05-05 19:27:43 UTC) #32
mmenke
Not a review (And don't pan on doing one, deferring to other reviewers here), just ...
3 years, 7 months ago (2017-05-05 19:34:15 UTC) #34
yzshen1
https://codereview.chromium.org/2860903006/diff/120001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2860903006/diff/120001/content/browser/frame_host/render_frame_host_impl.cc#newcode3052 content/browser/frame_host/render_frame_host_impl.cc:3052: commit_data.url_loader_factory = mojo::MessagePipeHandle(); nit: this line could be removed ...
3 years, 7 months ago (2017-05-05 19:54:08 UTC) #36
jam
Thanks all, addressed all comments. +isherman for third_party/zlib/google https://codereview.chromium.org/2860903006/diff/140001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2860903006/diff/140001/content/browser/frame_host/render_frame_host_impl.cc#newcode3052 content/browser/frame_host/render_frame_host_impl.cc:3052: commit_data.url_loader_factory ...
3 years, 7 months ago (2017-05-05 22:19:40 UTC) #40
scottmg
lgtm https://codereview.chromium.org/2860903006/diff/180001/content/browser/BUILD.gn File content/browser/BUILD.gn (right): https://codereview.chromium.org/2860903006/diff/180001/content/browser/BUILD.gn#newcode1513 content/browser/BUILD.gn:1513: "webui/web_ui_url_loader_factory.h", Probably need a deps on zlib here ...
3 years, 7 months ago (2017-05-05 22:38:10 UTC) #48
Ilya Sherman
zlib lgtm
3 years, 7 months ago (2017-05-05 22:52:15 UTC) #49
mmenke
https://codereview.chromium.org/2860903006/diff/140001/content/browser/webui/web_ui_url_loader_factory.cc File content/browser/webui/web_ui_url_loader_factory.cc (right): https://codereview.chromium.org/2860903006/diff/140001/content/browser/webui/web_ui_url_loader_factory.cc#newcode168 content/browser/webui/web_ui_url_loader_factory.cc:168: void DataAvailable(scoped_refptr<base::RefCountedMemory> bytes) { On 2017/05/05 22:19:40, jam wrote: ...
3 years, 7 months ago (2017-05-05 22:59:27 UTC) #51
jam
https://codereview.chromium.org/2860903006/diff/140001/content/browser/webui/web_ui_url_loader_factory.cc File content/browser/webui/web_ui_url_loader_factory.cc (right): https://codereview.chromium.org/2860903006/diff/140001/content/browser/webui/web_ui_url_loader_factory.cc#newcode168 content/browser/webui/web_ui_url_loader_factory.cc:168: void DataAvailable(scoped_refptr<base::RefCountedMemory> bytes) { On 2017/05/05 22:59:27, mmenke wrote: ...
3 years, 7 months ago (2017-05-05 23:25:07 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/2860903006/220001
3 years, 7 months ago (2017-05-05 23:51:07 UTC) #55
yzshen1
LGTM
3 years, 7 months ago (2017-05-06 01:00:39 UTC) #56
commit-bot: I haz the power
3 years, 7 months ago (2017-05-06 18:50:47 UTC) #59
Message was sent while issue was closed.
Committed patchset #9 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/8c4edd07d3cf96c44d1995e491f8...

Powered by Google App Engine
This is Rietveld 408576698