WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.
nsIContentHandler
| IID: | 49439df2-b3d2-441c-bf62-866bdaf56fd2 |
| Inherits From: | nsISupports |
This interface is implemented by the following components:
- @mozilla.org/commandlinehandler/general-startup;1?type=browser
- @mozilla.org/commandlinehandler/general-startup;1?type=chrome
- @mozilla.org/commandlinehandler/general-startup;1?type=news
- @mozilla.org/messenger/imapservice;1
- @mozilla.org/messenger/messageservice;1?type=imap
- @mozilla.org/messenger/messageservice;1?type=imap-message
- @mozilla.org/messenger/messageservice;1?type=news
- @mozilla.org/messenger/messageservice;1?type=news-message
- @mozilla.org/messenger/nntpservice;1
- @mozilla.org/messenger/protocol/info;1?type=imap
- @mozilla.org/messenger/protocol/info;1?type=nntp
- @mozilla.org/network/protocol;1?name=imap
- @mozilla.org/network/protocol;1?name=news
- @mozilla.org/network/protocol;1?name=nntp
- @mozilla.org/network/protocol;1?name=snews
- @mozilla.org/uriloader/content-handler;1?type=application/http-index-format
- @mozilla.org/uriloader/content-handler;1?type=application/vnd.mozilla.xul+xml
- @mozilla.org/uriloader/content-handler;1?type=application/x-xpinstall
- @mozilla.org/uriloader/content-handler;1?type=application/xhtml+xml
- @mozilla.org/uriloader/content-handler;1?type=application/xml
- @mozilla.org/uriloader/content-handler;1?type=image/bmp
- @mozilla.org/uriloader/content-handler;1?type=image/gif
- @mozilla.org/uriloader/content-handler;1?type=image/jpeg
- @mozilla.org/uriloader/content-handler;1?type=image/jpg
- @mozilla.org/uriloader/content-handler;1?type=image/png
- @mozilla.org/uriloader/content-handler;1?type=image/x-icon
- @mozilla.org/uriloader/content-handler;1?type=image/x-jng
- @mozilla.org/uriloader/content-handler;1?type=image/x-xbitmap
- @mozilla.org/uriloader/content-handler;1?type=text/css
- @mozilla.org/uriloader/content-handler;1?type=text/html
- @mozilla.org/uriloader/content-handler;1?type=text/plain
- @mozilla.org/uriloader/content-handler;1?type=text/rdf
- @mozilla.org/uriloader/content-handler;1?type=text/xml
- @mozilla.org/uriloader/content-handler;1?type=video/x-mng
- @mozilla.org/uriloader/content-handler;1?type=x-application-imapfolder
- @mozilla.org/uriloader/content-handler;1?type=x-application-irc
- @mozilla.org/uriloader/content-handler;1?type=x-application-jsd
- @mozilla.org/uriloader/content-handler;1?type=x-application-mailto
- @mozilla.org/uriloader/content-handler;1?type=x-application-newsgroup
- @mozilla.org/uriloader/content-handler;1?type=x-application-newsgroup-listids
- @mozilla.org/uriloader/content-handler;1?type=x-message-display
- @mozilla.org/xpinstall/installtrigger;1
- @mozilla.org/uriloader/content-handler;1?type=x-application-addvcard
- @mozilla.org/browser/clh;1
- @mozilla.org/uriloader/content-handler;1?type=image/svg+xml
- @mozilla.org/uriloader/content-handler;1?type=image/vnd.microsoft.icon
Methods
void handleContent ( char* contentType , nsIInterfaceRequestor windowContext , nsIRequest request )
void handleContent ( char* contentType , nsIInterfaceRequestor windowContext , nsIRequest request )
Tells the content handler to take over handling the content. If this function succeeds, the URI Loader will leave this request alone, ignoring progress notifications. Failure of this method will cause the request to be cancelled, unless the error code is NS_ERROR_WONT_HANDLE_CONTENT (see below).
- Arguments:
- contentType: The content type of request
- windowContext: Window context, used to get things like the current nsIDOMWindow for this request. May be null.
- request: A request whose content type is already known.
Reference documentation is generated from Mozilla's source.
