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

Issue 2263173002: [WONT COMMIT] WebSocket: Remove WorkerThread::terminated() call (Closed)

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

Description

WebSocket: Remove WorkerThread::terminated() call WorkerThread::terminated() should be removed because it exposes an internal state of WorkerThread. Instead, clients of WorkerThread should check a thread state by WorkerThreadLifecycleObserver. In this CL, WorkerWebSocketChannel::Peer on main thread observes worker thread termination and notifies WorkerWebSocketChannel::Bridge on worker thread via WebSocketChannelSyncHelper. BUG=639153

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -3 lines) Patch
M third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp View 4 chunks +18 lines, -3 lines 1 comment Download

Messages

Total messages: 13 (9 generated)
nhiroki
PTAL, thanks!
4 years, 4 months ago (2016-08-22 22:43:23 UTC) #9
haraken
LGTM on my side.
4 years, 4 months ago (2016-08-22 23:49:42 UTC) #10
yhirano
https://codereview.chromium.org/2263173002/diff/1/third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp File third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp (right): https://codereview.chromium.org/2263173002/diff/1/third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp#newcode382 third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp:382: m_syncHelper->setWorkerThreadTerminated(true); I think this can be called after m_syncHelper->signalWorkerThread() ...
4 years, 4 months ago (2016-08-23 02:27:15 UTC) #11
nhiroki
4 years, 3 months ago (2016-08-24 08:38:16 UTC) #12
Let me close this CL in favor of https://codereview.chromium.org/2271133002/

Powered by Google App Engine
This is Rietveld 408576698