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

Issue 2840473002: Worker: Remove WorkerLoaderProxy for clean-up (Closed)

Created:
3 years, 8 months ago by nhiroki
Modified:
3 years, 6 months ago
Reviewers:
kinuko, keishi, haraken, yhirano
CC:
chromium-reviews, shans, tzik, kinuko+worker_chromium.org, kinuko+watch, jsbell+serviceworker_chromium.org, yhirano+watch_chromium.org, hongchan, blink-reviews, falken+watch_chromium.org, blink-worker-reviews_chromium.org, Eric Willigers, rjwright, Raymond Toy, darktears, michaeln, shimazu+serviceworker_chromium.org, tyoshino+watch_chromium.org, blink-reviews-animation_chromium.org, serviceworker-reviews, shimazu+worker_chromium.org, kinuko+serviceworker, horo+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Worker: Remove WorkerLoaderProxy for clean-up For clean-up, this CL removes WorkerLoaderProxy and makes worker components directly use ThreadableLoadingContext instead. Before this CL WorkerLoaderProxy is used for conveying ThreadableLoadingContext between main and worker threads, but it's no longer necessary: we can directly pass ThreadableLoadingContext among the threads. One of the key features of WorkerLoaderProxy was to detect worker termination on the main thread (DetatchProvider()), but we already have a more proper way to do it (WorkerThreadLifecycleObserver) and it's already used for loading. BUG=694914 Review-Url: https://codereview.chromium.org/2840473002 Cr-Commit-Position: refs/heads/master@{#475308} Committed: https://chromium.googlesource.com/chromium/src/+/3e327942abfd83502aa17cc59acefa6e30c91d0e

Patch Set 1 : wip #

Total comments: 12

Patch Set 2 : rebase #

Patch Set 3 : address review comments #

Patch Set 4 : clean up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -379 lines) Patch
M third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp View 1 2 6 chunks +3 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ThreadableLoadingContext.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h View 3 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp View 6 chunks +12 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/workers/BUILD.gn View 1 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerMessagingProxy.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp View 1 2 3 4 chunks +6 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerThread.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerThread.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerThread.h View 1 2 3 2 chunks +3 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp View 1 2 3 1 chunk +2 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.h View 5 chunks +4 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp View 3 chunks +1 line, -8 lines 0 comments Download
M third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp View 1 3 chunks +4 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h View 1 chunk +0 lines, -96 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp View 1 chunk +0 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.h View 1 2 4 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 1 3 chunks +10 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp View 2 chunks +3 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h View 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletMessagingProxy.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.cpp View 1 1 chunk +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerMessagingProxy.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.cpp View 1 1 chunk +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp View 1 2 1 chunk +2 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioWorkletMessagingProxy.cpp View 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.h View 3 3 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp View 1 3 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadTest.cpp View 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.h View 1 2 5 chunks +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp View 6 chunks +13 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h View 1 4 chunks +1 line, -8 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 4 chunks +2 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.h View 1 4 chunks +1 line, -8 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 2 3 4 chunks +4 lines, -14 lines 0 comments Download

Messages

Total messages: 47 (30 generated)
nhiroki
PTAL, thanks!
3 years, 8 months ago (2017-04-24 06:51:55 UTC) #18
kinuko
lgtm https://codereview.chromium.org/2840473002/diff/40001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp File third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp (right): https://codereview.chromium.org/2840473002/diff/40001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp#newcode246 third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp:246: ThreadableLoadingContext::Create(GetDocument()), *reporting_proxy_)); nit: makeunique (while you're there)
3 years, 8 months ago (2017-04-24 09:30:16 UTC) #22
yhirano
Can ThreadableLoadingContext::GetTaskRunner() be called from arbitrary thread? TaskRunnerHelper::Get(_, Document*) calls Document::GetFrame and the function is ...
3 years, 8 months ago (2017-04-24 09:47:10 UTC) #23
kinuko
All the methods of threadable loading context should be called 'only from the thread where ...
3 years, 8 months ago (2017-04-25 01:44:26 UTC) #24
yhirano
On 2017/04/25 01:44:26, kinuko wrote: > All the methods of threadable loading context should be ...
3 years, 8 months ago (2017-04-25 02:17:57 UTC) #25
yhirano
On 2017/04/25 01:44:26, kinuko wrote: > All the methods of threadable loading context should be ...
3 years, 8 months ago (2017-04-25 02:17:57 UTC) #26
kinuko
On 2017/04/25 02:17:57, yhirano wrote: > On 2017/04/25 01:44:26, kinuko wrote: > > All the ...
3 years, 8 months ago (2017-04-25 02:26:47 UTC) #27
nhiroki
Thank you for your comments. Unfortunately, this patch is now blocked by perf regression issue ...
3 years, 8 months ago (2017-04-25 06:13:42 UTC) #28
haraken
https://codereview.chromium.org/2840473002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThread.h File third_party/WebKit/Source/core/workers/WorkerThread.h (right): https://codereview.chromium.org/2840473002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThread.h#newcode289 third_party/WebKit/Source/core/workers/WorkerThread.h:289: // Set on the main thread and accessed on ...
3 years, 8 months ago (2017-04-25 16:53:44 UTC) #30
keishi
https://codereview.chromium.org/2840473002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThread.h File third_party/WebKit/Source/core/workers/WorkerThread.h (right): https://codereview.chromium.org/2840473002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThread.h#newcode289 third_party/WebKit/Source/core/workers/WorkerThread.h:289: // Set on the main thread and accessed on ...
3 years, 8 months ago (2017-04-25 23:42:02 UTC) #31
kinuko
https://codereview.chromium.org/2840473002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThread.h File third_party/WebKit/Source/core/workers/WorkerThread.h (right): https://codereview.chromium.org/2840473002/diff/40001/third_party/WebKit/Source/core/workers/WorkerThread.h#newcode289 third_party/WebKit/Source/core/workers/WorkerThread.h:289: // Set on the main thread and accessed on ...
3 years, 8 months ago (2017-04-26 02:57:18 UTC) #32
haraken
Chatted with keishi@ offline. The conclusion is that it will be safe to access the ...
3 years, 8 months ago (2017-04-26 03:04:59 UTC) #33
kinuko
On 2017/04/26 03:04:59, haraken wrote: > Chatted with keishi@ offline. The conclusion is that it ...
3 years, 8 months ago (2017-04-26 03:21:51 UTC) #34
nhiroki
Sorry for putting this on hold for a while. The blocker issue was resolved. I ...
3 years, 6 months ago (2017-05-29 04:20:24 UTC) #39
nhiroki
On 2017/04/25 02:26:47, kinuko wrote: > On 2017/04/25 02:17:57, yhirano wrote: > > On 2017/04/25 ...
3 years, 6 months ago (2017-05-29 04:20:43 UTC) #40
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/2840473002/100001
3 years, 6 months ago (2017-05-29 04:33:29 UTC) #44
commit-bot: I haz the power
3 years, 6 months ago (2017-05-29 08:09:38 UTC) #47
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/3e327942abfd83502aa17cc59ace...

Powered by Google App Engine
This is Rietveld 408576698