nsISupports
Last changed in Gecko 15.0 (Firefox 15.0 / Thunderbird 15.0 / SeaMonkey 2.12)To use this service, simply call nsISupports.QueryInterface()
on the nsIIOService
you plan to use for the connection, to get access to the I/O service's implementation of nsISpeculativeConnect. Then call speculativeConnect()
to let the networking layer know what you might be doing in the future.
void speculativeConnect(in nsIURI aURI, in nsIInterfaceRequestor aCallbacks, in nsIEventTarget aTarget); |
Call this method to hint to the networking layer that a new transaction for the specified URI is likely to happen soon. The code implementing this method may use this information to start a TCP and/or SSL level handshake for that resource immediately so that it is ready (or at least in the process of becoming ready) when the transaction is actually submitted.
No obligation is taken on by the implementer, nor is the submitter obligated to actually open the new channel.
void speculativeConnect( in nsIURI aURI, in nsIInterfaceRequestor aCallbacks, in nsIEventTarget aTarget );
aURI
aCallbacks
nsIBadCertListener
. May be null
.aTarget
null
for "any thread".nsIIOService