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

Issue 2943463002: Implement dumb URLLoader{Factory} for ServiceWorker script loading (Closed)

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

Description

Implement dumb URLLoader{Factory} for ServiceWorker script loading Currently it only proxies request/response to/from the network factory, plus does necessary HttpResponseInfo passing. The plan is to use this URLLoader for script loading/caching during installation. (Currently this always sets-up the URLLoader{Factory} if servicification is enabled because we need it for correctly setting HttpResponseInfo of the main resource of ServiceWorker) (Patch on top of https://codereview.chromium.org/2779763004/ Try: https://codereview.chromium.org/2936623002/) BUG=715640 Review-Url: https://codereview.chromium.org/2943463002 Cr-Commit-Position: refs/heads/master@{#481477} Committed: https://chromium.googlesource.com/chromium/src/+/e7ab19876d2a092ef09f584619ea82890e89050e

Patch Set 1 #

Patch Set 2 : . #

Total comments: 11

Patch Set 3 : . #

Total comments: 4

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -25 lines) Patch
M content/browser/service_worker/embedded_worker_test_helper.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_context_core.h View 1 2 6 chunks +18 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.h View 3 chunks +10 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 2 5 chunks +19 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 1 2 3 6 chunks +165 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_loader_job.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_loader_job.cc View 1 2 3 2 chunks +10 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 1 chunk +1 line, -8 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 4 chunks +7 lines, -4 lines 0 comments Download
M content/child/service_worker/service_worker_network_provider.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_network_provider.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_provider.mojom View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
kinuko
PTL
3 years, 6 months ago (2017-06-15 08:42:05 UTC) #3
falken
lgtm https://codereview.chromium.org/2943463002/diff/20001/content/browser/service_worker/service_worker_provider_host.cc File content/browser/service_worker/service_worker_provider_host.cc (right): https://codereview.chromium.org/2943463002/diff/20001/content/browser/service_worker/service_worker_provider_host.cc#newcode104 content/browser/service_worker/service_worker_provider_host.cc:104: // eventually). For now this is just a ...
3 years, 6 months ago (2017-06-16 04:24:56 UTC) #4
falken
https://codereview.chromium.org/2943463002/diff/20001/content/browser/service_worker/service_worker_provider_host.cc File content/browser/service_worker/service_worker_provider_host.cc (right): https://codereview.chromium.org/2943463002/diff/20001/content/browser/service_worker/service_worker_provider_host.cc#newcode113 content/browser/service_worker/service_worker_provider_host.cc:113: const ResourceRequest& url_request, On 2017/06/16 04:24:56, falken wrote: > ...
3 years, 6 months ago (2017-06-16 04:26:54 UTC) #5
shimazu
https://codereview.chromium.org/2943463002/diff/20001/content/browser/service_worker/service_worker_provider_host.cc File content/browser/service_worker/service_worker_provider_host.cc (right): https://codereview.chromium.org/2943463002/diff/20001/content/browser/service_worker/service_worker_provider_host.cc#newcode863 content/browser/service_worker/service_worker_provider_host.cc:863: mojom::URLLoaderFactoryAssociatedPtr loader_factory_ptr; I think you can use mojom::URLLoaderFactoryAssociatedPtrInfo directly ...
3 years, 6 months ago (2017-06-16 04:45:07 UTC) #6
kinuko
Thanks! Updated. https://codereview.chromium.org/2943463002/diff/20001/content/browser/service_worker/service_worker_provider_host.cc File content/browser/service_worker/service_worker_provider_host.cc (right): https://codereview.chromium.org/2943463002/diff/20001/content/browser/service_worker/service_worker_provider_host.cc#newcode104 content/browser/service_worker/service_worker_provider_host.cc:104: // eventually). For now this is just ...
3 years, 6 months ago (2017-06-16 09:15:16 UTC) #7
kinuko
+dcheng@ for .mojom review
3 years, 6 months ago (2017-06-16 09:16:38 UTC) #9
dcheng
ipc lgtm just to understand correctly, this is intended to eventually replace the current hooks ...
3 years, 6 months ago (2017-06-17 09:37:48 UTC) #10
shimazu
lgtm
3 years, 6 months ago (2017-06-19 02:01:34 UTC) #11
kinuko
Thanks! Addressed comments, rebased & also added comments about the plan (i.e. this code should ...
3 years, 6 months ago (2017-06-21 08:35:23 UTC) #12
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/2943463002/60001
3 years, 6 months ago (2017-06-22 06:22:38 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/e7ab19876d2a092ef09f584619ea82890e89050e
3 years, 6 months ago (2017-06-22 08:02:36 UTC) #22
shimazu
3 years, 5 months ago (2017-06-27 04:13:12 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2959903002/ by shimazu@chromium.org.

The reason for reverting is: This patch depends on https://crrev.com/1ebf3cb
which is being reverted. 
See also the bug: https://crbug.com/736649.

Powered by Google App Engine
This is Rietveld 408576698