Interface nsISpeculativeConnectionOverriderType

This is used to override the default values for various values (documented inline) to determine whether or not to actually make a speculative connection.

Hierarchy

Properties

allow1918: boolean

by default speculative connections are not made to RFC 1918 addresses

ignoreIdle: boolean

Used to determine if we will ignore the existence of any currently idle connections when we decide whether or not to make a speculative connection.

ignoreUserCertCheck: boolean

By default the speculative connections triggered by nsISpeculativeConnect should respect the user certificate checks implemented in nsHttpHandler. The checks can be ignored for Link: rel=preconnect and is also controlled by a pref.

isFromPredictor: boolean

Used by the Predictor to gather telemetry data on speculative connection usage.

parallelSpeculativeConnectLimit: number

Used to determine the maximum number of unused speculative connections we will have open for a host at any one time

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

Generated using TypeDoc