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

Issue 1888703002: Worker: Rename worker components to clarify what they work for (Closed)

Created:
4 years, 8 months ago by nhiroki
Modified:
4 years, 8 months ago
Reviewers:
kinuko, haraken, yhirano
CC:
chromium-reviews, falken, kinuko+worker_chromium.org, blink-reviews, horo+watch_chromium.org, blink-worker-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Worker: Rename worker components to clarify what they work for (1) It sounds like WorkerGlobalScopeProxy is the base class of ServiceWorkerGlobalScopeProxy, but it is not true. WorkerGlobalScopeProxy works for in-process workers, namely, DedicatedWorker and CompositorWorker. This patch renames them as follows: WorkerGlobalScopeProxy => InProcessWorkerGlobalScopeProxy WorkerMessagingProxy => InProcessWorkerMessagingProxy (2) WorkerGlobalScopeProxyProvider provides a proxy for DedicatedWorker, so it should be prefixed with "Dedicated": WorkerGlobalScopeProxyProvider => DedicatedWorkerGlobalScopeProxyProvider WorkerGlobalScopeProxyProviderImpl => DedicatedWorkerGlobalScopeProxyProviderImpl BUG=603785 Committed: https://crrev.com/c4334f65977df7d8c44f14b7cf2ecc2f32772a2a Cr-Commit-Position: refs/heads/master@{#388166}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : WorkerGlobalScopeProxy -> WorkerMessagingProxy #

Patch Set 3 : rename more #

Patch Set 4 : rename more #

Patch Set 5 : rebase #

Patch Set 6 : (Recreate the whole CL) just add Dedicated/InProcess prefixes #

Total comments: 4

Patch Set 7 : WorkerMessagingProxy -> InProcessWorkerMessagingProxy #

Patch Set 8 : createDedicatedWorkerGlobalScopeProxy -> createWorkerGlobalScopeProxy #

Total comments: 1

Patch Set 9 : add missing files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -839 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameConsole.cpp View 1 chunk +0 lines, -1 line 0 comments Download
A + third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScopeProxyProvider.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -11 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScopeProxyProvider.cpp View 2 3 4 5 1 chunk +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerMessagingProxy.h View 1 6 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerMessagingProxy.cpp View 1 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerBase.h View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/InProcessWorkerGlobalScopeProxy.h View 1 2 3 4 5 3 chunks +7 lines, -7 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h View 1 2 3 4 5 6 7 8 4 chunks +13 lines, -10 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp View 1 6 7 8 15 chunks +22 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/workers/Worker.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/Worker.cpp View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScopeProxy.h View 1 chunk +0 lines, -63 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScopeProxyProvider.h View 1 chunk +0 lines, -62 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScopeProxyProvider.cpp View 1 chunk +0 lines, -52 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerMessagingProxy.h View 6 1 chunk +0 lines, -118 lines 0 comments Download
D third_party/WebKit/Source/core/workers/WorkerMessagingProxy.cpp View 6 1 chunk +0 lines, -292 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerObjectProxy.h View 1 6 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerObjectProxy.cpp View 1 6 3 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorker.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerMessagingProxy.h View 1 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerMessagingProxy.cpp View 1 6 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/DedicatedWorkerGlobalScopeProxyProviderImpl.h View 1 2 3 4 5 6 7 1 chunk +15 lines, -16 lines 0 comments Download
A + third_party/WebKit/Source/web/DedicatedWorkerGlobalScopeProxyProviderImpl.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 3 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WorkerGlobalScopeProxyProviderImpl.h View 1 chunk +0 lines, -63 lines 0 comments Download
M third_party/WebKit/Source/web/WorkerGlobalScopeProxyProviderImpl.cpp View 1 chunk +0 lines, -66 lines 0 comments Download
M third_party/WebKit/Source/web/web.gypi View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (19 generated)
nhiroki
Hi yhirano@ and kinuko@, Can you take a look at this patch? Any feedback is ...
4 years, 8 months ago (2016-04-14 08:38:15 UTC) #12
kinuko
The prefix part sgtm. Reg: WorkerMessagingProxy renaming: the term 'worker global scope proxy' is used ...
4 years, 8 months ago (2016-04-14 08:54:38 UTC) #13
yhirano
https://codereview.chromium.org/1888703002/diff/40001/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScopeProxyProvider.h File third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScopeProxyProvider.h (right): https://codereview.chromium.org/1888703002/diff/40001/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScopeProxyProvider.h#newcode52 third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScopeProxyProvider.h:52: virtual DedicatedWorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(Worker*) = 0; createDedicatedWorkerGlobalScoprProxy?
4 years, 8 months ago (2016-04-14 11:52:24 UTC) #14
yhirano
> Reg: WorkerMessagingProxy renaming: the term 'worker global scope proxy' is used > so differently ...
4 years, 8 months ago (2016-04-14 11:57:00 UTC) #15
kinuko
On 2016/04/14 11:57:00, yhirano wrote: > > Reg: WorkerMessagingProxy renaming: the term 'worker global scope ...
4 years, 8 months ago (2016-04-14 14:11:18 UTC) #16
kinuko
On 2016/04/14 14:11:18, kinuko wrote: > On 2016/04/14 11:57:00, yhirano wrote: > > > Reg: ...
4 years, 8 months ago (2016-04-14 14:15:30 UTC) #17
nhiroki
On 2016/04/14 14:15:30, kinuko wrote: > On 2016/04/14 14:11:18, kinuko wrote: > > On 2016/04/14 ...
4 years, 8 months ago (2016-04-19 02:07:15 UTC) #21
nhiroki
https://codereview.chromium.org/1888703002/diff/40001/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScopeProxyProvider.h File third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScopeProxyProvider.h (right): https://codereview.chromium.org/1888703002/diff/40001/third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScopeProxyProvider.h#newcode52 third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScopeProxyProvider.h:52: virtual DedicatedWorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(Worker*) = 0; On 2016/04/14 11:52:24, yhirano ...
4 years, 8 months ago (2016-04-19 02:09:23 UTC) #22
kinuko
renaming looks good > WorkerMessagingProxy => InProcessWorkerMessagingProxy So we're not making this change as we're ...
4 years, 8 months ago (2016-04-19 04:44:20 UTC) #23
yhirano
lgtm https://codereview.chromium.org/1888703002/diff/140001/third_party/WebKit/Source/core/workers/Worker.h File third_party/WebKit/Source/core/workers/Worker.h (right): https://codereview.chromium.org/1888703002/diff/140001/third_party/WebKit/Source/core/workers/Worker.h#newcode13 third_party/WebKit/Source/core/workers/Worker.h:13: class ExecutionContext; +class InProcessWorkerGlobalScopeProxy;
4 years, 8 months ago (2016-04-19 04:50:28 UTC) #24
nhiroki
Thanks. Comment reply only. On 2016/04/19 04:44:20, kinuko wrote: > renaming looks good > > ...
4 years, 8 months ago (2016-04-19 04:53:24 UTC) #25
haraken
LGTM
4 years, 8 months ago (2016-04-19 05:00:30 UTC) #26
nhiroki
Thank you for reviewing! Updated. kinuko@, can you take another look? https://codereview.chromium.org/1888703002/diff/140001/third_party/WebKit/Source/core/workers/Worker.h File third_party/WebKit/Source/core/workers/Worker.h (right): ...
4 years, 8 months ago (2016-04-19 06:15:05 UTC) #28
nhiroki
On 2016/04/19 04:53:24, nhiroki wrote: > Thanks. Comment reply only. > > On 2016/04/19 04:44:20, ...
4 years, 8 months ago (2016-04-19 06:15:43 UTC) #29
kinuko
you forgot to add new files? https://codereview.chromium.org/1888703002/diff/180001/third_party/WebKit/Source/core/workers/WorkerObjectProxy.h File third_party/WebKit/Source/core/workers/WorkerObjectProxy.h (right): https://codereview.chromium.org/1888703002/diff/180001/third_party/WebKit/Source/core/workers/WorkerObjectProxy.h#newcode54 third_party/WebKit/Source/core/workers/WorkerObjectProxy.h:54: class CORE_EXPORT WorkerObjectProxy ...
4 years, 8 months ago (2016-04-19 06:29:03 UTC) #30
nhiroki
On 2016/04/19 06:29:03, kinuko wrote: > you forgot to add new files? Ohh..., sorry! I ...
4 years, 8 months ago (2016-04-19 07:04:21 UTC) #31
kinuko
lgtm, thanks!
4 years, 8 months ago (2016-04-19 08:04:29 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1888703002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1888703002/200001
4 years, 8 months ago (2016-04-19 08:07:52 UTC) #35
commit-bot: I haz the power
Committed patchset #9 (id:200001)
4 years, 8 months ago (2016-04-19 08:16:50 UTC) #37
commit-bot: I haz the power
4 years, 8 months ago (2016-04-19 08:18:26 UTC) #39
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/c4334f65977df7d8c44f14b7cf2ecc2f32772a2a
Cr-Commit-Position: refs/heads/master@{#388166}

Powered by Google App Engine
This is Rietveld 408576698