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

Issue 2116113002: [worklets] Make WorkerThread handle both Worker and Worklet global scopes. (Closed)

Created:
4 years, 5 months ago by ikilpatrick
Modified:
4 years, 4 months ago
CC:
chromium-reviews, kinuko+worker_chromium.org, jsbell+serviceworker_chromium.org, caseq+blink_chromium.org, tzik, serviceworker-reviews, kinuko+serviceworker, lushnikov+blink_chromium.org, falken, pfeldman+blink_chromium.org, michaeln, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, horo+watch_chromium.org, sergeyv+blink_chromium.org, kinuko+watch, blink-worker-reviews_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[worklets] Make WorkerThread handle both Worker and Worklet global scopes. This is to allow the WorkerThread infrastructure be used for ThreadedWorkletGlobalScope (see WIP here: https://codereview.chromium.org/2171973002/) This class could also be renamed to something like ThreadScriptEnvironment or ThreadContextEnvironment, but can also be done later in just a rename patch. BUG=567358 Committed: https://crrev.com/9639129aab764e7597ab62c98dc27605d0a0b668 Cr-Commit-Position: refs/heads/master@{#407911}

Patch Set 1 #

Patch Set 2 : [worklets] Make WorkerThread handle both Worker and Worklet global scopes. #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : [worklets] Make WorkerThread handle both Worker and Worklet global scopes. #

Patch Set 6 : Fix tests. #

Total comments: 6

Patch Set 7 : address comments #

Patch Set 8 : rebase. #

Patch Set 9 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -86 lines) Patch
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp View 1 2 3 4 5 6 7 8 5 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerThread.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerThread.cpp View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerThread.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp View 1 2 3 4 4 chunks +16 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.h View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerReportingProxy.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.h View 1 2 3 4 5 6 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 1 2 3 4 5 13 chunks +42 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.cpp View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (23 generated)
ikilpatrick
This is the first patch to make the worker thread infrastructure to handle both workers ...
4 years, 5 months ago (2016-07-21 23:40:41 UTC) #10
kinuko
At a quick glance this looks reasonable to me, I'd like to defer the detailed ...
4 years, 5 months ago (2016-07-22 05:44:34 UTC) #13
yhirano
The change looks good but I would be happy if we had a right word ...
4 years, 5 months ago (2016-07-22 06:23:41 UTC) #14
kinuko
On 2016/07/22 06:23:41, yhirano wrote: > The change looks good but I would be happy ...
4 years, 5 months ago (2016-07-22 06:57:26 UTC) #15
nhiroki
LGTM after kinuko and yhirano's comments are addressed.
4 years, 5 months ago (2016-07-22 07:43:00 UTC) #16
haraken
LGTM
4 years, 5 months ago (2016-07-22 07:57:20 UTC) #17
ikilpatrick
Right, my thoughts for naming was to make it "ThreadedGlobal*" Thoughts? Was going to followup ...
4 years, 5 months ago (2016-07-22 18:21:59 UTC) #20
yhirano
Sorry for the late response. LGTM. Regarding ThreadedGlobal: According to your design doc, both ThreadedWorkletGlobalScope ...
4 years, 4 months ago (2016-07-26 02:16:17 UTC) #23
nhiroki
On 2016/07/26 02:16:17, yhirano wrote: > Sorry for the late response. LGTM. > > Regarding ...
4 years, 4 months ago (2016-07-26 04:39:52 UTC) #24
nhiroki
On 2016/07/26 04:39:52, nhiroki (slow) wrote: > On 2016/07/26 02:16:17, yhirano wrote: > > Sorry ...
4 years, 4 months ago (2016-07-26 08:47:26 UTC) #25
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/2116113002/160001
4 years, 4 months ago (2016-07-26 20:55:41 UTC) #32
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 4 months ago (2016-07-26 21:00:34 UTC) #34
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 21:02:06 UTC) #36
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/9639129aab764e7597ab62c98dc27605d0a0b668
Cr-Commit-Position: refs/heads/master@{#407911}

Powered by Google App Engine
This is Rietveld 408576698