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

Issue 2310673002: [worklets] Split up InProcessWorkerMessagingProxy into a base+worker class. (Closed)

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

Description

[worklets] Split up InProcessWorkerMessagingProxy into a base+worker class. This pulls out all of the lifetime logic for the WorkerThread into the base class ThreadedMessagingProxyBase. This will allow us to re-use all of the lifetime logic (I've created a followup demo patch which does this https://codereview.chromium.org/2312493002/) BUG=567358 Committed: https://crrev.com/89b9278e35bf785df739d89efb9587961a95f776 Cr-Commit-Position: refs/heads/master@{#417161}

Patch Set 1 #

Patch Set 2 : .. #

Patch Set 3 : .. #

Patch Set 4 : ... #

Patch Set 5 : ... #

Total comments: 8

Patch Set 6 : rebase on top of dependency patch. #

Patch Set 7 : move postmessaging handling around. #

Patch Set 8 : cleanup. #

Total comments: 4

Patch Set 9 : rebase. #

Patch Set 10 : address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -469 lines) Patch
M third_party/WebKit/Source/core/workers/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 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
M third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -51 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp View 1 2 3 4 5 6 7 8 9 8 chunks +26 lines, -131 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.h View 1 2 3 4 5 6 7 8 9 2 chunks +36 lines, -88 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp View 1 2 3 4 5 6 7 6 chunks +29 lines, -196 lines 0 comments Download

Messages

Total messages: 33 (22 generated)
ikilpatrick
This was a first pass of splitting this class up for use by the worklet ...
4 years, 3 months ago (2016-09-04 00:34:01 UTC) #11
nhiroki
https://codereview.chromium.org/2310673002/diff/80001/third_party/WebKit/Source/core/workers/ThreadedGlobalScopeProxy.h File third_party/WebKit/Source/core/workers/ThreadedGlobalScopeProxy.h (right): https://codereview.chromium.org/2310673002/diff/80001/third_party/WebKit/Source/core/workers/ThreadedGlobalScopeProxy.h#newcode15 third_party/WebKit/Source/core/workers/ThreadedGlobalScopeProxy.h:15: class CORE_EXPORT ThreadedGlobalScopeProxy { On 2016/09/04 00:34:01, ikilpatrick wrote: ...
4 years, 3 months ago (2016-09-06 07:07:08 UTC) #12
ikilpatrick
https://codereview.chromium.org/2310673002/diff/80001/third_party/WebKit/Source/core/workers/ThreadedGlobalScopeProxy.h File third_party/WebKit/Source/core/workers/ThreadedGlobalScopeProxy.h (right): https://codereview.chromium.org/2310673002/diff/80001/third_party/WebKit/Source/core/workers/ThreadedGlobalScopeProxy.h#newcode15 third_party/WebKit/Source/core/workers/ThreadedGlobalScopeProxy.h:15: class CORE_EXPORT ThreadedGlobalScopeProxy { On 2016/09/06 07:07:08, nhiroki wrote: ...
4 years, 3 months ago (2016-09-06 18:59:50 UTC) #15
nhiroki
LGTM :)
4 years, 3 months ago (2016-09-07 03:12:21 UTC) #18
haraken
LGTM
4 years, 3 months ago (2016-09-07 04:11:13 UTC) #19
yhirano
https://codereview.chromium.org/2310673002/diff/140001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp File third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp (right): https://codereview.chromium.org/2310673002/diff/140001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp#newcode170 third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp:170: for (auto& earlyTasks : m_queuedEarlyTasks) This is not this ...
4 years, 3 months ago (2016-09-07 04:46:38 UTC) #20
ikilpatrick
https://codereview.chromium.org/2310673002/diff/140001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp File third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp (right): https://codereview.chromium.org/2310673002/diff/140001/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp#newcode170 third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp:170: for (auto& earlyTasks : m_queuedEarlyTasks) On 2016/09/07 04:46:37, yhirano ...
4 years, 3 months ago (2016-09-07 17:53:57 UTC) #23
yhirano
lgtm
4 years, 3 months ago (2016-09-08 01:53:23 UTC) #26
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/2310673002/180001
4 years, 3 months ago (2016-09-08 02:01:00 UTC) #29
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-09-08 02:05:09 UTC) #31
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 02:07:03 UTC) #33
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/89b9278e35bf785df739d89efb9587961a95f776
Cr-Commit-Position: refs/heads/master@{#417161}

Powered by Google App Engine
This is Rietveld 408576698