DescriptionDelegate WebSocket message handlers to the loading task runner
IPC messages including WebSocket messages are dispatched on the default
task runner. We found WebSocket message handlers might call V8
functions. We plan to implement purge + suspend background tabs and need
to suspend all V8 function calls when purge + suspend happens, but the
default task runner can't be suspended since it'd be dangerous. Thus,
this CL delegates WebSocket message handlers from the default task
runner to the loading task runner.
BUG=607077
TEST=n/a
Committed: https://crrev.com/384b3b11a1afb71511dc15bc7324f69226ffe801
Cr-Commit-Position: refs/heads/master@{#397074}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Introduce WebSocketMessageFilter (WIP) #Patch Set 3 : Add comments #
Total comments: 8
Patch Set 4 : Address on reviews #
Total comments: 2
Patch Set 5 : Address on yhirano's review #
Total comments: 2
Patch Set 6 : Use WeakPtr #
Total comments: 2
Patch Set 7 : Add a comment #
Depends on Patchset: Messages
Total messages: 30 (7 generated)
|