Struct xpcom::interfaces::nsIRequestContext [] [src]

#[repr(C)]
pub struct nsIRequestContext { /* fields omitted */ }

interface nsIRequestContext : nsISupports

/**
 * The nsIRequestContext is used to maintain state about connections
 * that are in some way associated with each other (often by being part
 * of the same load group) and how they interact with blocking items like
 * HEAD css/js loads.
 *
 * This used to be known as nsILoadGroupConnectionInfo and nsISchedulingContext.
 */

Methods

impl nsIRequestContext
[src]

[src]

Cast this nsIRequestContext to one of its base interfaces.

impl nsIRequestContext
[src]

[src]

/**
   * A unique identifier for this request context
   */

[noscript] readonly attribute unsigned long long ID;

[src]

/**
   * Called by the associated document when its load starts.  This resets
   * context's internal states.
   */

void beginLoad ();

[src]

/**
  * Called when the associated document notified the DOMContentLoaded event.
  */

void DOMContentLoaded ();

[src]

/**
   * Number of active blocking transactions associated with this context
   */

readonly attribute unsigned long blockingTransactionCount;

[src]

/**
   * Increase the number of active blocking transactions associated
   * with this context by one.
   */

void addBlockingTransaction ();

[src]

/**
   * Decrease the number of active blocking transactions associated
   * with this context by one. The return value is the number of remaining
   * blockers.
   */

unsigned long removeBlockingTransaction ();

[src]

/**
   * This holds a cached value of the user agent override.
   */

[noscript] attribute ACString userAgentOverride;

[src]

/**
   * This holds a cached value of the user agent override.
   */

[noscript] attribute ACString userAgentOverride;

[src]

/**
   * Increases/decrease the number of non-tailed requests in this context.
   * If the count drops to zero, all tail-blocked callbacks are notified
   * shortly after that to be unblocked.
   */

void addNonTailRequest ();

[src]

void removeNonTailRequest ();

[src]

/**
   * If the request context is in tail-blocked state, the callback
   * is queued and result is true.  The callback will be notified
   * about tail-unblocking or when the request context is canceled.
   */

[must_use] boolean isContextTailBlocked (in nsIRequestTailUnblockCallback callback);

[src]

/**
   * Called when the request is sitting in the tail queue but has been
   * canceled before untailing.  This just removes the request from the
   * queue so that it is not notified on untail and not referenced.
   */

void cancelTailedRequest (in nsIRequestTailUnblockCallback request);

[src]

/**
   * This notifies all queued tail-blocked requests, they will be notified
   * aResult and released afterwards.  Called by the load group when
   * it's canceled.
   */

void cancelTailPendingRequests (in nsresult aResult);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIRequestContext
[src]

IID: nsIID = nsID(1703820910, 34355, 19226, [141, 102, 250, 159, 114, 41, 62, 99])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIRequestContext
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIRequestContext
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.