Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes | Friends
nsURILoader Class Reference

#include <nsURILoader.h>

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

List of all members.

Public Member Functions

NS_DECL_NSIURILOADER
NS_DECL_ISUPPORTS 
nsURILoader ()
 ~nsURILoader ()
void registerContentListener (in nsIURIContentListener aContentListener)
 As applications such as messenger and the browser are instantiated, they register content listener's with the uri dispatcher corresponding to content windows within that application.
void unRegisterContentListener (in nsIURIContentListener aContentListener)
void openURI (in nsIChannel aChannel, in boolean aIsContentPreferred, in nsIInterfaceRequestor aWindowContext)
 OpenURI requires the following parameters....
void stop (in nsISupports aLoadCookie)
 Stops an in progress load.

Protected Attributes

nsCOMArray< nsIWeakReferencem_listeners
 we shouldn't need to have an owning ref count on registered content listeners because they are supposed to unregister themselves when they go away.

Friends

class nsDocumentOpenInfo

Detailed Description

Definition at line 58 of file nsURILoader.h.


Constructor & Destructor Documentation

Definition at line 804 of file nsURILoader.cpp.

{
#ifdef PR_LOGGING
  if (!mLog) {
    mLog = PR_NewLogModule("URILoader");
  }
#endif
}

Definition at line 813 of file nsURILoader.cpp.

{
}

Member Function Documentation

void nsIURILoader::openURI ( in nsIChannel  aChannel,
in boolean  aIsContentPreferred,
in nsIInterfaceRequestor  aWindowContext 
) [inherited]

OpenURI requires the following parameters....

Parameters:
aChannelThe channel that should be opened. This must not be asyncOpen'd yet! If a loadgroup is set on the channel, it will get replaced with a different one.
aIsContentPreferredShould the content be displayed in a container that prefers the content-type, or will any container do.
aWindowContextIf you are running the url from a doc shell or a web shell, this is your window context. If you have a content listener you want to give first crack to, the uri loader needs to be able to get it from the window context. We will also be using the window context to get at the progress event sink interface. Must not be null!

As applications such as messenger and the browser are instantiated, they register content listener's with the uri dispatcher corresponding to content windows within that application.

Note to self: we may want to optimize things a bit more by requiring the content types the registered content listener cares about.

Parameters:
aContentListenerThe listener to register. This listener must implement nsISupportsWeakReference.
See also:
the nsIURILoader class description
void nsIURILoader::stop ( in nsISupports  aLoadCookie) [inherited]

Stops an in progress load.


Friends And Related Function Documentation

friend class nsDocumentOpenInfo [friend]

Definition at line 82 of file nsURILoader.h.


Member Data Documentation

we shouldn't need to have an owning ref count on registered content listeners because they are supposed to unregister themselves when they go away.

This array stores weak references

Definition at line 73 of file nsURILoader.h.


The documentation for this class was generated from the following files: