Description[webcrypto] Make it safe to delete WebCryptoResult from any thread.
It used to be that WebCrytoResult had to be deleted from the original Blink thread which created it. This posed a challenge for embedders that wanted to defer the work to a background thread. Since it was possible that by the time the work had completed, the original Blink thread was gone (if it was a WebWorker).
The approach taken in this changelist is to split out the state tied to an ExecutionContext into a separate WeakPtr which deletes itself on request completion, or when the ExecutionContext is destroyed.
BUG=366840, 245025
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172696
Patch Set 1 #Patch Set 2 : Use WeakPtr #
Total comments: 2
Patch Set 3 : Make constructor take ExecutionContext #Patch Set 4 : Rebase #
Messages
Total messages: 11 (0 generated)
|