Struct xpcom::interfaces::nsIHttpActivityObserver [] [src]

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

interface nsIHttpActivityObserver : nsISupports

/**
 * nsIHttpActivityObserver
 *
 * This interface provides a way for http activities to be reported
 * to observers.
 */

Methods

impl nsIHttpActivityObserver
[src]

[src]

Cast this nsIHttpActivityObserver to one of its base interfaces.

impl nsIHttpActivityObserver
[src]

ACTIVITY_TYPE_SOCKET_TRANSPORT: i64 = 1

ACTIVITY_TYPE_HTTP_TRANSACTION: i64 = 2

ACTIVITY_SUBTYPE_REQUEST_HEADER: i64 = 20481

ACTIVITY_SUBTYPE_REQUEST_BODY_SENT: i64 = 20482

ACTIVITY_SUBTYPE_RESPONSE_START: i64 = 20483

ACTIVITY_SUBTYPE_RESPONSE_HEADER: i64 = 20484

ACTIVITY_SUBTYPE_RESPONSE_COMPLETE: i64 = 20485

ACTIVITY_SUBTYPE_TRANSACTION_CLOSE: i64 = 20486

[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;

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

IID: nsIID = nsID(1093173448, 27702, 18648, [191, 143, 132, 249, 31, 137, 37, 3])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIHttpActivityObserver
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.