Readonly
isThis 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.
When true, the ACTIVITY_TYPE_HTTP_CONNECTION will be sent to the observers.
When true, the ACTIVITY_SUBTYPE_PROXY_RESPONSE_HEADER will be sent to the observers.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
observe activity from the http transport
nsISupports interface for the the http channel that generated this activity
The value of this aActivityType will be one of ACTIVITY_TYPE_SOCKET_TRANSPORT or ACTIVITY_TYPE_HTTP_TRANSACTION
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
microseconds past the epoch of Jan 1, 1970
Any extra size data optionally available with this activity
Any extra string data optionally available with this activity
This function is used when the real http channel is not available. We use the information in |HttpActivityArgs| to get the http channel or create a |NullHttpChannel|.
See the definition of |HttpActivityArgs| in PSocketProcess.ipdl.
This function is for testing only. We use this function to observe the activities of HTTP connections. To receive this notification, observeConnection should be set to true.
This function is for internal use only. Every time a http transaction is created in socket process, we use this function to set the value of |isActive|. We need this since the real value of |isActive| is only available in parent process.
Generated using TypeDoc
nsIHttpActivityDistributor
This interface provides a way to register and unregister observers to the http activities.