2000-07-18 15:03:16 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 11:12:37 +00:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2000-07-18 15:03:16 +00:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIChannel;
|
|
|
|
interface nsIContentViewer;
|
|
|
|
interface nsIStreamListener;
|
2013-11-15 07:12:43 +00:00
|
|
|
interface nsIDocShell;
|
2000-07-18 15:03:16 +00:00
|
|
|
interface nsIDocument;
|
|
|
|
interface nsILoadGroup;
|
2006-11-22 18:27:54 +00:00
|
|
|
interface nsIPrincipal;
|
2000-07-18 15:03:16 +00:00
|
|
|
|
2003-02-27 13:51:55 +00:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2000-07-18 15:03:16 +00:00
|
|
|
|
2013-11-15 07:12:43 +00:00
|
|
|
[scriptable, uuid(70905274-8494-4e39-b011-d559adde3733)]
|
2000-07-18 15:03:16 +00:00
|
|
|
interface nsIDocumentLoaderFactory : nsISupports {
|
|
|
|
nsIContentViewer createInstance(in string aCommand,
|
|
|
|
in nsIChannel aChannel,
|
|
|
|
in nsILoadGroup aLoadGroup,
|
|
|
|
in string aContentType,
|
2013-11-15 07:12:43 +00:00
|
|
|
in nsIDocShell aContainer,
|
2000-07-18 15:03:16 +00:00
|
|
|
in nsISupports aExtraInfo,
|
|
|
|
out nsIStreamListener aDocListenerResult);
|
|
|
|
|
|
|
|
nsIContentViewer createInstanceForDocument(in nsISupports aContainer,
|
|
|
|
in nsIDocument aDocument,
|
|
|
|
in string aCommand);
|
2001-11-06 01:24:39 +00:00
|
|
|
|
2006-11-22 18:27:54 +00:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
nsIDocument createBlankDocument(in nsILoadGroup aLoadGroup,
|
|
|
|
in nsIPrincipal aPrincipal);
|
2000-07-18 15:03:16 +00:00
|
|
|
};
|