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

Issue 265713004: Cleanup WorkerThreadableWebSocketChannel's logic to wait for the main thread (Closed)

Created:
6 years, 7 months ago by tyoshino (SeeGerritForStatus)
Modified:
6 years, 7 months ago
Reviewers:
yhirano
CC:
blink-reviews
Visibility:
Public.

Description

Cleanup WorkerThreadableWebSocketChannel's logic to wait for the main thread - Pass WorkerGlobalScope as a reference until we set it to RefPtr - Wrap m_syncHelper with a function hasTerminatedPeer() for readability - Stop holding reference on WorkerGlobalScope in WorkerThreadableWebSocketChannel - Move ASSERT(m_syncHelper) to waitForMethodCompletion() - Return a value indicating failure when waitForMethodCompletion() returns because of shutdown - Make the methods not calling waitForMethodCompletion() also return without doing anything if the peer is already terminated - Move task posting code into waitForMethodCompletion() - More comments for readability BUG=none Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173608

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -44 lines) Patch
M Source/modules/websockets/WorkerThreadableWebSocketChannel.h View 1 6 chunks +6 lines, -6 lines 0 comments Download
M Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp View 1 9 chunks +52 lines, -38 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
tyoshino (SeeGerritForStatus)
6 years, 7 months ago (2014-05-01 08:38:00 UTC) #1
yhirano
https://codereview.chromium.org/265713004/diff/1/Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp File Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp (right): https://codereview.chromium.org/265713004/diff/1/Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp#newcode495 Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp:495: RefPtr<Bridge> protect(this); Can you tell me why this move ...
6 years, 7 months ago (2014-05-07 08:05:17 UTC) #2
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/265713004/diff/1/Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp File Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp (right): https://codereview.chromium.org/265713004/diff/1/Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp#newcode495 Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp:495: RefPtr<Bridge> protect(this); On 2014/05/07 08:05:18, yhirano wrote: > Can ...
6 years, 7 months ago (2014-05-08 05:02:59 UTC) #3
yhirano
lgtm Can "Create RefPtr<Bridge> for protection before calling postTaskToLoader" be deleted from the description?
6 years, 7 months ago (2014-05-08 05:09:41 UTC) #4
tyoshino (SeeGerritForStatus)
On 2014/05/08 05:09:41, yhirano wrote: > lgtm > > Can "Create RefPtr<Bridge> for protection before ...
6 years, 7 months ago (2014-05-08 05:34:03 UTC) #5
tyoshino (SeeGerritForStatus)
The CQ bit was checked by tyoshino@chromium.org
6 years, 7 months ago (2014-05-08 05:34:12 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoshino@chromium.org/265713004/20001
6 years, 7 months ago (2014-05-08 05:34:37 UTC) #7
commit-bot: I haz the power
6 years, 7 months ago (2014-05-08 07:17:42 UTC) #8
Message was sent while issue was closed.
Change committed as 173608

Powered by Google App Engine
This is Rietveld 408576698