Struct xpcom::interfaces::nsIRequestContextService [] [src]

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

interface nsIRequestContextService : nsISupports

/**
 * 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.
 */

Methods

impl nsIRequestContextService
[src]

[src]

Cast this nsIRequestContextService to one of its base interfaces.

impl nsIRequestContextService
[src]

[src]

/**
   * Get an existing request context from its ID
   */

nsIRequestContext getRequestContext (in unsigned long long id);

[src]

/**
   * Shorthand to get request context from a load group
   */

nsIRequestContext getRequestContextFromLoadGroup (in nsILoadGroup lg);

[src]

/**
   * Create a new request context
   */

nsIRequestContext newRequestContext ();

[src]

/**
   * Remove an existing request context from its ID
   */

void removeRequestContext (in unsigned long long id);

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 nsIRequestContextService
[src]

IID: nsIID = nsID(2144072922, 55336, 19148, [177, 68, 229, 67, 81, 152, 247, 39])

[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 nsIRequestContextService
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIRequestContextService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.