10. GetProtocolHandler
1. Get protocol handler if it is cached.
2. Lookup in ‘about:config’ to check internal support.
3. For internal protocol, get internal protocol hander
service and cache it.
4. For external protocol, get default external protocol
handler service.
netwerk/base/nsIOService.cpp#406
17. nsIStreamListener
• onStartRequest()
• Called to signify the beginning of an asynchronous request.
• onStopRequest()
• Called to signify the end of an asynchronous request.
• onDataAvailable()
• This method is called when the next chunk of data for the
ongoing request may be read without blocking the calling
thread.