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

Issue 2741643003: Replace WorkerGlobalScope::postTask with WorkerThread::postTask (Closed)

Created:
3 years, 9 months ago by yuryu
Modified:
3 years, 9 months ago
Reviewers:
nhiroki, tzik
CC:
chromium-reviews, shimazu+worker_chromium.org, kinuko+worker_chromium.org, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace WorkerGlobalScope::postTask with WorkerThread::postTask ExecutionContextTask and ExecutionContext::postTask are deprecated and will be removed. This patch changes WorkerEventQueue to post tasks directly through an underlying thread of WorkerGlobalScope as well as adding a single thread version of WorkerThread::postTask. The behavior remains the same. BUG=625927 Review-Url: https://codereview.chromium.org/2741643003 Cr-Commit-Position: refs/heads/master@{#456337} Committed: https://chromium.googlesource.com/chromium/src/+/4e533644399b42111d85ab607219494ed719f0cb

Patch Set 1 #

Total comments: 2

Patch Set 2 : implement same thread version of WorkerThread::postTask #

Total comments: 10

Patch Set 3 : missppelling; include cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -13 lines) Patch
M third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 1 2 4 chunks +20 lines, -6 lines 0 comments Download

Messages

Total messages: 26 (17 generated)
yuryu
ptal, thanks
3 years, 9 months ago (2017-03-09 05:39:25 UTC) #3
nhiroki
https://codereview.chromium.org/2741643003/diff/1/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp File third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp (right): https://codereview.chromium.org/2741643003/diff/1/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp#newcode63 third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp:63: BLINK_FROM_HERE, crossThreadBind(&WorkerEventQueue::dispatchEvent, Can you add WorkerThread::postTask() for the same ...
3 years, 9 months ago (2017-03-09 05:49:30 UTC) #5
yuryu
https://codereview.chromium.org/2741643003/diff/1/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp File third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp (right): https://codereview.chromium.org/2741643003/diff/1/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp#newcode63 third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp:63: BLINK_FROM_HERE, crossThreadBind(&WorkerEventQueue::dispatchEvent, Added, but it doesn't look very nice. ...
3 years, 9 months ago (2017-03-09 13:03:36 UTC) #11
nhiroki
lgtm w/ nits https://codereview.chromium.org/2741643003/diff/20001/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp File third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp (right): https://codereview.chromium.org/2741643003/diff/20001/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp#newcode29 third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp:29: #include "core/dom/TaskRunnerHelper.h" Is this no longer ...
3 years, 9 months ago (2017-03-10 03:19:27 UTC) #12
nhiroki
On 2017/03/09 13:03:36, yuryu wrote: > https://codereview.chromium.org/2741643003/diff/1/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp > File third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp (right): > > https://codereview.chromium.org/2741643003/diff/1/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp#newcode63 > ...
3 years, 9 months ago (2017-03-10 03:23:28 UTC) #13
yuryu
https://codereview.chromium.org/2741643003/diff/20001/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp File third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp (right): https://codereview.chromium.org/2741643003/diff/20001/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp#newcode29 third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp:29: #include "core/dom/TaskRunnerHelper.h" On 2017/03/10 03:19:27, nhiroki (slow) wrote: > ...
3 years, 9 months ago (2017-03-10 06:05:15 UTC) #14
tzik
lgtm
3 years, 9 months ago (2017-03-13 06:29:14 UTC) #17
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/2741643003/40001
3 years, 9 months ago (2017-03-13 08:32:52 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 08:37:04 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/4e533644399b42111d85ab607219...

Powered by Google App Engine
This is Rietveld 408576698