Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIHttpActivityObserver Interface Reference

nsIHttpActivityObserver More...

import "nsIHttpActivityObserver.idl";

Inheritance diagram for nsIHttpActivityObserver:
Inheritance graph
[legend]
Collaboration diagram for nsIHttpActivityObserver:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void observeActivity (in nsISupports aHttpChannel, in PRUint32 aActivityType, in PRUint32 aActivitySubtype, in PRTime aTimestamp, in PRUint64 aExtraSizeData, in ACString aExtraStringData)
 observe activity from the http transport

Public Attributes

readonly attribute boolean isActive
 This attribute is true when this interface is active and should observe http activities.
const unsigned long ACTIVITY_TYPE_SOCKET_TRANSPORT = 0x0001
const unsigned long ACTIVITY_TYPE_HTTP_TRANSACTION = 0x0002
const unsigned long ACTIVITY_SUBTYPE_REQUEST_HEADER = 0x5001
const unsigned long ACTIVITY_SUBTYPE_REQUEST_BODY_SENT = 0x5002
const unsigned long ACTIVITY_SUBTYPE_RESPONSE_START = 0x5003
const unsigned long ACTIVITY_SUBTYPE_RESPONSE_HEADER = 0x5004
const unsigned long ACTIVITY_SUBTYPE_RESPONSE_COMPLETE = 0x5005
const unsigned long ACTIVITY_SUBTYPE_TRANSACTION_CLOSE = 0x5006

Detailed Description

nsIHttpActivityObserver

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

Definition at line 47 of file nsIHttpActivityObserver.idl.


Member Function Documentation

void nsIHttpActivityObserver::observeActivity ( in nsISupports  aHttpChannel,
in PRUint32  aActivityType,
in PRUint32  aActivitySubtype,
in PRTime  aTimestamp,
in PRUint64  aExtraSizeData,
in ACString  aExtraStringData 
)

observe activity from the http transport

Parameters:
aHttpChannelnsISupports interface for the the http channel that generated this activity
aActivityTypeThe value of this aActivityType will be one of ACTIVITY_TYPE_SOCKET_TRANSPORT or ACTIVITY_TYPE_HTTP_TRANSACTION
aActivitySubtypeThe 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
aTimestampmicroseconds past the epoch of Jan 1, 1970
aExtraSizeDataAny extra size data optionally available with this activity
aExtraStringDataAny extra string data optionally available with this activity

Member Data Documentation

Definition at line 98 of file nsIHttpActivityObserver.idl.

Definition at line 97 of file nsIHttpActivityObserver.idl.

Definition at line 101 of file nsIHttpActivityObserver.idl.

Definition at line 100 of file nsIHttpActivityObserver.idl.

Definition at line 99 of file nsIHttpActivityObserver.idl.

Definition at line 102 of file nsIHttpActivityObserver.idl.

Definition at line 95 of file nsIHttpActivityObserver.idl.

Definition at line 94 of file nsIHttpActivityObserver.idl.

This attribute is true when this interface is active and should observe http activities.

When false, observeActivity() should not be called.

Definition at line 92 of file nsIHttpActivityObserver.idl.


The documentation for this interface was generated from the following file: