You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.
|   |   |   |   | 

nsILoadGroup
This interface manages a load group, which is a collection of
nsIRequestobjects. It is scriptable.Adds a new request to the group. This will cause the default load flags to be applied to the request. If this is a foreground request then the
groupObserver'sonStartRequestwill be called. If the request is the default load request or if the default load request isnull, then the load group will inherit its load flags from the request.Syntax:
void nsILoadGroup::addRequest(in nsIRequest aRequest, in nsISupports aContext)Parameters:
nsresult:
Removes a request from the group. If this is a foreground request then the
groupObserver'sonStopRequestwill be called.Syntax:
void nsILoadGroup::removeRequest(in nsIRequest aRequest, in nsISupports aContext,in nsresult aStatus)Parameters:
aStatus:An error code with the reason for stopping, e.g.NS_BINDING_ABORTEDif the request was canceled.
nsresult:
Gets and sets the
groupObserver. ThegroupObserveris notified when requests are added to and removed from this load group. It is weak referenced.Gets and sets the default load request for the group. Each time a number of requests are added to a group, the
defaultLoadRequestmay be set to indicate that all of the requests are related to a base request. The load group inherits its load flags from the default load request. If the default load request isnull, then the group's load flags are not changed.Gets the requests contained directly in this group. The elements of the enumerator are of the type
nsIRequest.Gets the count of "active" requests (ie. requests without the
LOAD_BACKGROUNDbit set).
| Written by:Ellen Evans | Comments, questions, complaints? 
      Bug 143387 | 
|   |   |   |   |