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

Issue 2709193002: WorkerLoaderProxy: stop accessing cross-thread execution context (Closed)

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

Description

WorkerLoaderProxy: stop accessing cross-thread execution context * Removes ExecutionContextTask * Adds getLoadingExecutionContext() accessor to WorkerLoaderProxy{,Provider} * Stops accessing execution context in a cross-thread way We could possibly further clean up WorkerLoaderProxy, but I'll save it for later changes. BUG=625927, 673711 Review-Url: https://codereview.chromium.org/2709193002 Cr-Commit-Position: refs/heads/master@{#452458} Committed: https://chromium.googlesource.com/chromium/src/+/2a4d9d1f74a04c1122bc7ca32027da87cb14d3bd

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 8

Patch Set 5 : . #

Patch Set 6 : addressed comments #

Patch Set 7 : . #

Total comments: 2

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -99 lines) Patch
M third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp View 1 2 3 chunks +6 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp View 1 2 3 4 5 6 chunks +15 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.h View 6 3 chunks +4 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp View 1 2 3 4 5 6 2 chunks +9 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h View 1 2 3 4 4 chunks +17 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp View 1 2 3 4 5 6 7 3 chunks +12 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h View 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp View 1 2 3 4 7 chunks +21 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h View 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 2 chunks +6 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.h View 1 chunk +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 2 3 3 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 63 (51 generated)
kinuko
Wdyt?
3 years, 10 months ago (2017-02-23 04:46:19 UTC) #33
nhiroki
+tzik@ fyi
3 years, 10 months ago (2017-02-23 05:09:21 UTC) #35
nhiroki
Nice patch! LGTM :) https://codereview.chromium.org/2709193002/diff/130001/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h File third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h (right): https://codereview.chromium.org/2709193002/diff/130001/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h#newcode102 third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h:102: // This may return nullptr. ...
3 years, 10 months ago (2017-02-23 05:27:12 UTC) #36
nhiroki
Can you add 673711 to BUG= ?
3 years, 10 months ago (2017-02-23 05:28:30 UTC) #37
tzik
lgtm https://codereview.chromium.org/2709193002/diff/130001/third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.h File third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.h (right): https://codereview.chromium.org/2709193002/diff/130001/third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.h#newcode163 third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.h:163: PassRefPtr<WorkerLoaderProxy>, PassRefPtr will be removed soon. Can we ...
3 years, 10 months ago (2017-02-23 05:46:14 UTC) #39
yhirano
lgtm https://codereview.chromium.org/2709193002/diff/130001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp (right): https://codereview.chromium.org/2709193002/diff/130001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp#newcode461 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp:461: *toDocument(loaderProxy->getLoaderExecutionContext()), std::move(request), loaderContext https://codereview.chromium.org/2709193002/diff/130001/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.h File third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.h (right): https://codereview.chromium.org/2709193002/diff/130001/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.h#newcode48 ...
3 years, 10 months ago (2017-02-23 05:55:58 UTC) #40
kinuko
Thanks! https://codereview.chromium.org/2709193002/diff/130001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp File third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp (right): https://codereview.chromium.org/2709193002/diff/130001/third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp#newcode461 third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp:461: *toDocument(loaderProxy->getLoaderExecutionContext()), std::move(request), On 2017/02/23 05:55:58, yhirano wrote: > ...
3 years, 10 months ago (2017-02-23 07:35:30 UTC) #45
kinuko
+haraken for owner review, thanks.
3 years, 10 months ago (2017-02-23 08:09:39 UTC) #55
haraken
LGTM https://codereview.chromium.org/2709193002/diff/190001/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp File third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp (right): https://codereview.chromium.org/2709193002/diff/190001/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp#newcode48 third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp:48: MutexLocker locker(m_lock); Would you help me understand why ...
3 years, 10 months ago (2017-02-23 09:11:54 UTC) #56
kinuko
Thanks! https://codereview.chromium.org/2709193002/diff/190001/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp File third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp (right): https://codereview.chromium.org/2709193002/diff/190001/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp#newcode48 third_party/WebKit/Source/core/workers/WorkerLoaderProxy.cpp:48: MutexLocker locker(m_lock); On 2017/02/23 09:11:54, haraken wrote: > ...
3 years, 10 months ago (2017-02-23 09:25:18 UTC) #57
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/2709193002/210001
3 years, 10 months ago (2017-02-23 09:25:34 UTC) #60
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 11:14:47 UTC) #63
Message was sent while issue was closed.
Committed patchset #8 (id:210001) as
https://chromium.googlesource.com/chromium/src/+/2a4d9d1f74a04c1122bc7ca32027...

Powered by Google App Engine
This is Rietveld 408576698