Linux Mac OSX Windows
 nsIHttpActivityObserver

 This interface provides a way for http activities to be reported
 to observers.
[scriptable, uuid(412880c8-6c36-48d8-bf8f-84f91f892503)]
interface nsIHttpActivityObserver : nsISupports

Constants


        
const unsigned long ACTIVITY_TYPE_SOCKET_TRANSPORT = 1

        
const unsigned long ACTIVITY_TYPE_HTTP_TRANSACTION = 2

        
const unsigned long ACTIVITY_SUBTYPE_REQUEST_HEADER = 20481

        
const unsigned long ACTIVITY_SUBTYPE_REQUEST_BODY_SENT = 20482

        
const unsigned long ACTIVITY_SUBTYPE_RESPONSE_START = 20483

        
const unsigned long ACTIVITY_SUBTYPE_RESPONSE_HEADER = 20484

        
const unsigned long ACTIVITY_SUBTYPE_RESPONSE_COMPLETE = 20485

        
const unsigned long ACTIVITY_SUBTYPE_TRANSACTION_CLOSE = 20486

Attributes

 This attribute is true when this interface is active and should
 observe http activities. When false, observeActivity() should not
 be called.
readonly attribute boolean isActive

Methods

 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
void observeActivity(in nsISupports aHttpChannel, in PRUint32 aActivityType, in PRUint32 aActivitySubtype, in PRTime aTimestamp, in PRUint64 aExtraSizeData, in ACString aExtraStringData)