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

Issue 2733283004: Expose WebServiceWorkerNetworkProvider on DataSource (Closed)

Created:
3 years, 9 months ago by kinuko
Modified:
3 years, 9 months ago
Reviewers:
falken, Nate Chapin, dcheng, horo
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, Yoav Weiss, nasko+codewatch_chromium.org, creis+watch_chromium.org, mlamouri+watch-content_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, blink-reviews-api_chromium.org, dglazkov+blink, kinuko+serviceworker, horo+watch_chromium.org, blink-reviews, darin-cc_chromium.org, kinuko+watch, tzik, blink-reviews-frames_chromium.org, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose WebServiceWorkerNetworkProvider on DataSource While this exposes SW-related methods on DataSource, it also allows us to: - remove SW-related methods from WebFrameClient - remove cryptic entanglement between ServiceWorker and DataSource (DocumentLoader) that was done by ExtraData and UserData magic BUG=538751 Review-Url: https://codereview.chromium.org/2733283004 Cr-Commit-Position: refs/heads/master@{#456081} Committed: https://chromium.googlesource.com/chromium/src/+/bd180ddb1d14f49501f451a0117da5187deffb62

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 25

Patch Set 6 : addressed comments #

Total comments: 3

Patch Set 7 : crash fix #

Total comments: 1

Patch Set 8 : consistency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -319 lines) Patch
M content/child/service_worker/service_worker_network_provider.h View 1 2 3 4 5 6 3 chunks +17 lines, -17 lines 0 comments Download
M content/child/service_worker/service_worker_network_provider.cc View 1 2 3 4 5 5 chunks +47 lines, -15 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 chunks +19 lines, -37 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 3 chunks +16 lines, -13 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 2 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 4 chunks +12 lines, -29 lines 0 comments Download
M content/renderer/shared_worker/embedded_shared_worker_stub.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/shared_worker/embedded_shared_worker_stub.cc View 1 2 3 4 5 6 chunks +20 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrameClient.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.h View 1 2 3 4 5 3 chunks +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 6 2 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLRequest.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLResponse.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/LocalFrameClientImpl.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/LocalFrameClientImpl.cpp View 1 2 3 1 chunk +0 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/web/WebDataSourceImpl.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebDataSourceImpl.cpp View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h View 2 chunks +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 3 4 5 3 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp View 7 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 2 3 4 5 3 chunks +7 lines, -20 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 2 chunks +1 line, -1 line 0 comments Download
A + third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.h View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/public/web/WebDataSource.h View 3 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 chunk +0 lines, -10 lines 0 comments Download
M third_party/WebKit/public/web/WebSharedWorkerClient.h View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h View 2 chunks +2 lines, -3 lines 0 comments Download
D third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerNetworkProvider.h View 1 chunk +0 lines, -63 lines 0 comments Download

Messages

Total messages: 56 (44 generated)
kinuko
What do you think about this one? japhet@, dcheng@: DataSource, DocumentLoader, Frame related changes (and ...
3 years, 9 months ago (2017-03-09 16:23:03 UTC) #29
Nate Chapin
LGTM https://codereview.chromium.org/2733283004/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2733283004/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode76 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:76: #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.h" Are there rules about including public/platform/modules ...
3 years, 9 months ago (2017-03-09 19:52:07 UTC) #32
kinuko
Thanks! https://codereview.chromium.org/2733283004/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2733283004/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode76 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:76: #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.h" On 2017/03/09 19:52:07, Nate Chapin wrote: ...
3 years, 9 months ago (2017-03-10 01:51:03 UTC) #33
falken
https://codereview.chromium.org/2733283004/diff/120001/content/child/service_worker/service_worker_network_provider.h File content/child/service_worker/service_worker_network_provider.h (right): https://codereview.chromium.org/2733283004/diff/120001/content/child/service_worker/service_worker_network_provider.h#newcode42 content/child/service_worker/service_worker_network_provider.h:42: // with WebServiceWorkerNetworkProvider to be owned by blink. super ...
3 years, 9 months ago (2017-03-10 04:26:01 UTC) #34
horo
https://codereview.chromium.org/2733283004/diff/120001/content/child/service_worker/service_worker_network_provider.cc File content/child/service_worker/service_worker_network_provider.cc (right): https://codereview.chromium.org/2733283004/diff/120001/content/child/service_worker/service_worker_network_provider.cc#newcode48 content/child/service_worker/service_worker_network_provider.cc:48: class WebServiceWorkerNetworkProviderForNavigation "ForNavigation" looks misleading. I think "ForFrame" is ...
3 years, 9 months ago (2017-03-10 04:43:28 UTC) #35
dcheng
lgtm https://codereview.chromium.org/2733283004/diff/120001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2733283004/diff/120001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode827 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:827: auto service_worker_network_provider = auto* here and below as ...
3 years, 9 months ago (2017-03-10 04:48:38 UTC) #36
kinuko
Thanks, updated. https://codereview.chromium.org/2733283004/diff/120001/content/child/service_worker/service_worker_network_provider.cc File content/child/service_worker/service_worker_network_provider.cc (right): https://codereview.chromium.org/2733283004/diff/120001/content/child/service_worker/service_worker_network_provider.cc#newcode48 content/child/service_worker/service_worker_network_provider.cc:48: class WebServiceWorkerNetworkProviderForNavigation On 2017/03/10 04:43:28, horo wrote: ...
3 years, 9 months ago (2017-03-10 05:52:29 UTC) #38
horo
lgtm https://codereview.chromium.org/2733283004/diff/120001/content/child/service_worker/service_worker_network_provider.cc File content/child/service_worker/service_worker_network_provider.cc (right): https://codereview.chromium.org/2733283004/diff/120001/content/child/service_worker/service_worker_network_provider.cc#newcode48 content/child/service_worker/service_worker_network_provider.cc:48: class WebServiceWorkerNetworkProviderForNavigation On 2017/03/10 05:52:28, kinuko wrote: > ...
3 years, 9 months ago (2017-03-10 07:35:33 UTC) #42
falken
lgtm. Some bots are red, can't tell if it's due to this patch. https://codereview.chromium.org/2733283004/diff/140001/content/child/service_worker/service_worker_network_provider.h File ...
3 years, 9 months ago (2017-03-10 08:29:09 UTC) #43
kinuko
Thanks! Fixing tests, will land once they look good https://codereview.chromium.org/2733283004/diff/140001/content/child/service_worker/service_worker_network_provider.h File content/child/service_worker/service_worker_network_provider.h (right): https://codereview.chromium.org/2733283004/diff/140001/content/child/service_worker/service_worker_network_provider.h#newcode49 content/child/service_worker/service_worker_network_provider.h:49: ...
3 years, 9 months ago (2017-03-10 11:35:46 UTC) #48
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/2733283004/180001
3 years, 9 months ago (2017-03-10 16:44:49 UTC) #53
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 16:51:48 UTC) #56
Message was sent while issue was closed.
Committed patchset #8 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/bd180ddb1d14f49501f451a0117d...

Powered by Google App Engine
This is Rietveld 408576698