Interface nsINetworkInterceptControllerType

Interface to allow consumers to attach themselves to a channel's notification callbacks/loadgroup and determine if a given channel request should be intercepted before any network request is initiated.

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Notification when a given intercepted channel is prepared to accept a synthesized response via the provided stream.

    Parameters

    • aChannel: nsIInterceptedChannel

      the controlling interface for a channel that has been intercepted

    Returns void

  • Returns true if a channel should avoid initiating any network requests until specifically instructed to do so.

    Parameters

    • aURI: nsIURI

      The URI to be loaded. Note, this may differ from the channel's current URL in some cases.

    • aChannel: nsIChannel

      The channel that may be intercepted. It will be in the state prior to calling OnStartRequest().

    Returns bool

Generated using TypeDoc