nsIThreadRetargetableRequest
Should be implemented by requests that support retargeting delivery of
data off the main thread.
Called to retarget delivery of OnDataAvailable to another thread. Should
only be called before AsyncOpen for nsIWebsocketChannels, or during
OnStartRequest for nsIChannels.
Note: For nsIChannels, OnStartRequest and OnStopRequest will still be
delivered on the main thread.
Note: no return value is given. If the retargeting cannot be handled,
normal delivery to the main thread will continue. As such, listeners
should be ready to deal with OnDataAvailable on either the main thread or
the new target thread.
aNewTarget | New event target, e.g. thread or threadpool. |