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

Issue 1728803002: Rename WorkerThread to WorkerScript

Created:
4 years, 10 months ago by yhirano
Modified:
4 years, 9 months ago
Reviewers:
kinuko
CC:
chromium-reviews, tzik, eae+blinkwatch, apavlov+blink_chromium.org, kinuko+worker_chromium.org, rwlbuis, jsbell+serviceworker_chromium.org, caseq+blink_chromium.org, yhirano+watch_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, gavinp+loader_chromium.org, devtools-reviews_chromium.org, blink-reviews, blink-worker-reviews_chromium.org, sof, lushnikov+blink_chromium.org, loading-reviews_chromium.org, nhiroki, Nate Chapin, michaeln, tyoshino+watch_chromium.org, serviceworker-reviews, falken, pfeldman+blink_chromium.org, kinuko+serviceworker, horo+watch_chromium.org, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org, sadrul, jochen (gone - plz use gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@workerscript-controller
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename WorkerThread to WorkerScript "WorkerThread" sounds like a thread, but the current implementation is more related to the script environment than thread. For example, multiple CompositeWorkerThread instances share one backing thread. This change renames the classes to increase the readability. This change is a follow-up of https://codereview.chromium.org/1100413004. BUG=575532

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+533 lines, -2634 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/Init.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 4 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ExecutionContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp View 1 2 chunks +3 lines, -3 lines 1 comment Download
M third_party/WebKit/Source/core/inspector/WorkerConsoleAgent.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp View 1 5 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.h View 2 chunks +3 lines, -3 lines 1 comment Download
M third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp View 2 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ThreadableLoader.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp View 1 4 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerMessagingProxy.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerMessagingProxy.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/DedicatedWorkerScript.h View 2 chunks +10 lines, -10 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/DedicatedWorkerScript.cpp View 1 chunk +10 lines, -10 lines 0 comments Download
D third_party/WebKit/Source/core/workers/DedicatedWorkerThread.h View 1 chunk +0 lines, -62 lines 0 comments Download
D third_party/WebKit/Source/core/workers/DedicatedWorkerThread.cpp View 1 chunk +0 lines, -74 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.cpp View 1 3 chunks +7 lines, -7 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/SharedWorkerScript.h View 2 chunks +10 lines, -10 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/SharedWorkerScript.cpp View 1 chunk +9 lines, -9 lines 0 comments Download
D third_party/WebKit/Source/core/workers/SharedWorkerThread.h View 1 chunk +0 lines, -59 lines 0 comments Download
D third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp View 1 chunk +0 lines, -65 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerConsole.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.h View 1 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 1 11 chunks +13 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScopeProxy.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerInspectorProxy.h View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp View 3 chunks +26 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerMessagingProxy.h View 5 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerMessagingProxy.cpp View 1 10 chunks +27 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerObjectProxy.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerObjectProxy.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerReportingProxy.h View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/core/workers/WorkerScript.h View 1 7 chunks +15 lines, -16 lines 3 comments Download
A + third_party/WebKit/Source/core/workers/WorkerScript.cpp View 1 19 chunks +68 lines, -68 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/WorkerScriptStartupData.h View 4 chunks +13 lines, -13 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/WorkerScriptStartupData.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/WorkerScriptTest.cpp View 1 10 chunks +34 lines, -34 lines 0 comments Download
D third_party/WebKit/Source/core/workers/WorkerThread.h View 1 1 chunk +0 lines, -189 lines 0 comments Download
D third_party/WebKit/Source/core/workers/WorkerThread.cpp View 1 1 chunk +0 lines, -545 lines 0 comments Download
D third_party/WebKit/Source/core/workers/WorkerThreadStartupData.h View 1 chunk +0 lines, -95 lines 0 comments Download
D third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp View 1 chunk +0 lines, -61 lines 0 comments Download
D third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp View 1 1 chunk +0 lines, -254 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp View 1 3 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerMessagingProxy.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerMessagingProxy.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
A + third_party/WebKit/Source/modules/compositorworker/CompositorWorkerScript.h View 4 chunks +12 lines, -12 lines 0 comments Download
A + third_party/WebKit/Source/modules/compositorworker/CompositorWorkerScript.cpp View 3 chunks +28 lines, -28 lines 0 comments Download
A + third_party/WebKit/Source/modules/compositorworker/CompositorWorkerScriptTest.cpp View 16 chunks +39 lines, -39 lines 0 comments Download
D third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h View 1 chunk +0 lines, -51 lines 0 comments Download
D third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.cpp View 1 chunk +0 lines, -219 lines 0 comments Download
D third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp View 1 chunk +0 lines, -300 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 5 chunks +7 lines, -7 lines 0 comments Download
A + third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScript.h View 1 chunk +10 lines, -10 lines 0 comments Download
A + third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScript.cpp View 1 chunk +9 lines, -9 lines 0 comments Download
D third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.h View 1 chunk +0 lines, -58 lines 0 comments Download
D third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp View 1 chunk +0 lines, -64 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/WebSocketChannel.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 9 chunks +18 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/web/WebLeakDetector.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.h View 5 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 8 chunks +18 lines, -18 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 11 (5 generated)
yhirano
Hi, kinuko@, can you take a look? You reviewed https://codereview.chromium.org/1100413004, so I think you're the ...
4 years, 10 months ago (2016-02-23 23:12:17 UTC) #6
haraken
Would it make more sense to rename WorkerThread to WorkerGlobalScopeProxy? I think the relationship between ...
4 years, 10 months ago (2016-02-24 10:16:06 UTC) #7
kinuko
Some methods on WorkerThread are more for threading/run-loop related than script-related, which makes me feel ...
4 years, 10 months ago (2016-02-24 12:54:51 UTC) #8
kinuko
We already have WorkerGlobalScopeProxy (and ServiceWorkerGlobalScopeProxy for SW), which bridges between Worker object (or browser-side ...
4 years, 10 months ago (2016-02-24 13:02:38 UTC) #9
yhirano
On 2016/02/24 13:02:38, kinuko wrote: > yhirano@ wrote: > > I'm planning to decouple thread-related ...
4 years, 9 months ago (2016-02-26 22:14:01 UTC) #10
kinuko
4 years, 9 months ago (2016-03-02 07:57:50 UTC) #11
On 2016/02/26 22:14:01, yhirano wrote:
> On 2016/02/24 13:02:38, kinuko wrote:
> > yhirano@ wrote:
> > > I'm planning to decouple thread-related part from WorkerScript and create
a
> > new
> > > WorkerThread class in the future.
> > 
> > If we could cleanly separate seemingly more threading-related part to the
new
> > class I could be convinced.
> 
> I uploaded https://codereview.chromium.org/1733353004/.

Took a look at the other patch, I think it works for me.

Powered by Google App Engine
This is Rietveld 408576698