DescriptionCleanup 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 #
Messages
Total messages: 8 (0 generated)
|