Public Member Functions

nsIDocumentLoaderFactory Interface Reference

To get a component that implements nsIDocumentLoaderFactory for a given mimetype, use nsICategoryManager to find an entry with the mimetype as its name in the category "Gecko-Content-Viewers". More...

import "nsIDocumentLoaderFactory.idl";

Inheritance diagram for nsIDocumentLoaderFactory:

List of all members.

Public Member Functions

nsIContentViewer createInstance (in string aCommand, in nsIChannel aChannel, in nsILoadGroup aLoadGroup, in string aContentType, in nsISupports aContainer, in nsISupports aExtraInfo, out nsIStreamListener aDocListenerResult)
nsIContentViewer createInstanceForDocument (in nsISupports aContainer, in nsIDocument aDocument, in string aCommand)
nsIDocument createBlankDocument (in nsILoadGroup aLoadGroup, in nsIPrincipal aPrincipal)
 Create a blank document using the given loadgroup and given principal.

Detailed Description

To get a component that implements nsIDocumentLoaderFactory for a given mimetype, use nsICategoryManager to find an entry with the mimetype as its name in the category "Gecko-Content-Viewers".

The value of the entry is the contractid of the component. The component is a service, so use GetService, not CreateInstance to get it.


Member Function Documentation

nsIDocument nsIDocumentLoaderFactory::createBlankDocument ( in nsILoadGroup  aLoadGroup,
in nsIPrincipal  aPrincipal 
)

Create a blank document using the given loadgroup and given principal.

aPrincipal is allowed to be null, in which case the new document will get the about:blank codebase principal.

nsIContentViewer nsIDocumentLoaderFactory::createInstance ( in string  aCommand,
in nsIChannel  aChannel,
in nsILoadGroup  aLoadGroup,
in string  aContentType,
in nsISupports  aContainer,
in nsISupports  aExtraInfo,
out nsIStreamListener  aDocListenerResult 
)
nsIContentViewer nsIDocumentLoaderFactory::createInstanceForDocument ( in nsISupports  aContainer,
in nsIDocument  aDocument,
in string  aCommand 
)

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