Struct xpcom::interfaces::nsIHttpActivityDistributor [] [src]

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

interface nsIHttpActivityDistributor : nsIHttpActivityObserver

/**
 * nsIHttpActivityDistributor
 *
 * This interface provides a way to register and unregister observers to the
 * http activities.
 */

Methods

impl nsIHttpActivityDistributor
[src]

[src]

Cast this nsIHttpActivityDistributor to one of its base interfaces.

impl nsIHttpActivityDistributor
[src]

[src]

void addObserver (in nsIHttpActivityObserver aObserver);

[src]

void removeObserver (in nsIHttpActivityObserver aObserver);

Methods from Deref<Target = nsIHttpActivityObserver>

[src]

Cast this nsIHttpActivityObserver to one of its base interfaces.

[src]

/**
     * observe activity from the http transport
     *
     * @param aHttpChannel
     *        nsISupports interface for the the http channel that
     *        generated this activity
     * @param aActivityType
     *        The value of this aActivityType will be one of
     *          ACTIVITY_TYPE_SOCKET_TRANSPORT or
     *          ACTIVITY_TYPE_HTTP_TRANSACTION
     * @param aActivitySubtype
     *        The value of this aActivitySubtype, will be depend
     *        on the value of aActivityType. When aActivityType
     *        is ACTIVITY_TYPE_SOCKET_TRANSPORT
     *          aActivitySubtype will be one of the
     *          nsISocketTransport::STATUS_???? values defined in
     *          nsISocketTransport.idl
     *        OR when aActivityType
     *        is ACTIVITY_TYPE_HTTP_TRANSACTION
     *          aActivitySubtype will be one of the
     *          nsIHttpActivityObserver::ACTIVITY_SUBTYPE_???? values
     *          defined below
     * @param aTimestamp
     *        microseconds past the epoch of Jan 1, 1970
     * @param aExtraSizeData
     *        Any extra size data optionally available with
     *        this activity
     * @param aExtraStringData
     *        Any extra string data optionally available with
     *        this activity
     */

[must_use] void observeActivity (in nsISupports aHttpChannel, in uint32_t aActivityType, in uint32_t aActivitySubtype, in PRTime aTimestamp, in uint64_t aExtraSizeData, in ACString aExtraStringData);

[src]

/**
     * This attribute is true when this interface is active and should
     * observe http activities. When false, observeActivity() should not
     * be called. It is present for compatibility reasons and should be
     * implemented only by nsHttpActivityDistributor.
     */

[must_use] readonly attribute boolean isActive;

Trait Implementations

impl XpCom for nsIHttpActivityDistributor
[src]

IID: nsIID = nsID(2085694648, 22570, 17957, [181, 182, 134, 57, 117, 82, 113, 181])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIHttpActivityDistributor
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.