Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Generated using TypeDoc
The nsIRequestContextService is how anyone gets access to a request context when they haven't been explicitly given a strong reference to an existing one. It is responsible for creating and handing out strong references to nsIRequestContexts, but only keeps weak references itself. The shared request context will go away once no one else is keeping a reference to it. If you ask for a request context that has no one else holding a reference to it, you'll get a brand new request context. Anyone who asks for the same request context while you're holding a reference will get a reference to the same request context you have.