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

Issue 2539443004: Worker: Move ParentFrameTaskRunners from WorkerReportingProxy to ObjectProxy (Closed)

Created:
4 years ago by nhiroki
Modified:
3 years, 11 months ago
Reviewers:
kinuko, haraken
CC:
chromium-reviews, shans, rjwright, blink-reviews-animation_chromium.org, shimazu+worker_chromium.org, kinuko+worker_chromium.org, Raymond Toy, darktears, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, hongchan, kinuko+watch, blink-worker-reviews_chromium.org, Eric Willigers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Worker: Move ParentFrameTaskRunners from WorkerReportingProxy to ObjectProxy WorkerReportingProxy::getParentFrameTaskRunners() was introduced by [1] in order to provide a way to post a task from a worker thread to the main thread. This is still useful, but would be misplaced as a review comment[2]. This CL removes WorkerReportingProxy::getParentFrameTaskRunners() and instead each ObjectProxy and WorkerThread has its own ParentFrameTaskRunners instance if necessary. MessagingProxy on the main thread creates ParentFrameTaskRunners and then passes it to ObjectProxy and WorkerThread on a worker thread separately. [1] https://codereview.chromium.org/2513413003/ [2] https://codereview.chromium.org/2513413003/#msg40 BUG=667310 Review-Url: https://codereview.chromium.org/2539443004 Cr-Commit-Position: refs/heads/master@{#445673} Committed: https://chromium.googlesource.com/chromium/src/+/22d251e18ae5a0b5f21a31a4875156c36b884f03

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : remake #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -129 lines) Patch
M third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerMessagingProxy.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp View 1 2 3 4 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerThread.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerThread.cpp View 1 2 1 chunk +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerThread.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp View 1 2 1 chunk +10 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/workers/ThreadedObjectProxyBase.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/ThreadedObjectProxyBase.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp View 1 2 3 4 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerReportingProxy.h View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.h View 1 2 3 3 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 1 2 3 3 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h View 1 2 3 4 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletMessagingProxy.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.cpp View 1 2 1 chunk +9 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp View 1 2 3 2 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerMessagingProxy.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.cpp View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp View 1 2 3 5 chunks +13 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp View 1 2 1 chunk +9 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioWorkletMessagingProxy.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp View 1 2 1 chunk +9 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadTest.cpp View 1 2 3 5 chunks +5 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 1 chunk +1 line, -7 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 2 3 4 chunks +5 lines, -11 lines 0 comments Download

Messages

Total messages: 40 (25 generated)
nhiroki
4 years ago (2016-11-29 07:03:12 UTC) #7
nhiroki
PTAL, thanks!
4 years ago (2016-11-29 07:03:43 UTC) #10
nhiroki
+haraken for changes in WorkerThread.cpp.
4 years ago (2016-11-29 07:04:35 UTC) #13
nhiroki
https://codereview.chromium.org/2539443004/diff/40001/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp File third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp (left): https://codereview.chromium.org/2539443004/diff/40001/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp#oldcode433 third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp:433: m_parentFrameTaskRunners = ParentFrameTaskRunners::create(nullptr); Just note: We might need to ...
4 years ago (2016-11-29 07:08:27 UTC) #14
kinuko
Thanks for the follow-up. https://codereview.chromium.org/2539443004/diff/40001/third_party/WebKit/Source/core/workers/WorkerThread.cpp File third_party/WebKit/Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/2539443004/diff/40001/third_party/WebKit/Source/core/workers/WorkerThread.cpp#newcode357 third_party/WebKit/Source/core/workers/WorkerThread.cpp:357: // essentially we don't have ...
4 years ago (2016-11-29 12:52:52 UTC) #17
nhiroki
Sorry, I couldn't have time to work on this today. I'll update this CL / ...
4 years ago (2016-11-30 14:51:12 UTC) #18
nhiroki
On 2016/11/30 14:51:12, nhiroki wrote: > Sorry, I couldn't have time to work on this ...
4 years ago (2016-12-05 08:50:32 UTC) #19
nhiroki
Hi kinuko-san and haraken-san, can you take another look at this? I remade the entire ...
3 years, 11 months ago (2017-01-24 01:48:12 UTC) #26
kinuko
lgtm
3 years, 11 months ago (2017-01-24 02:02:35 UTC) #28
haraken
LGTM
3 years, 11 months ago (2017-01-24 02:09:29 UTC) #29
nhiroki
Thank you :)
3 years, 11 months ago (2017-01-24 02:10:35 UTC) #30
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/2539443004/80001
3 years, 11 months ago (2017-01-24 02:11:26 UTC) #32
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/workers/WorkerThread.h: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-24 04:08:46 UTC) #34
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/2539443004/100001
3 years, 11 months ago (2017-01-24 04:53:55 UTC) #37
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 07:16:32 UTC) #40
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/22d251e18ae5a0b5f21a31a48751...

Powered by Google App Engine
This is Rietveld 408576698