2000-07-18 19:03:16 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04: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 19:03:16 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIChannel;
|
|
|
|
interface nsIContentViewer;
|
|
|
|
interface nsIStreamListener;
|
2013-11-15 11:12:43 +04:00
|
|
|
interface nsIDocShell;
|
2000-07-18 19:03:16 +04:00
|
|
|
interface nsIDocument;
|
|
|
|
interface nsILoadGroup;
|
2006-11-22 21:27:54 +03:00
|
|
|
interface nsIPrincipal;
|
2000-07-18 19:03:16 +04:00
|
|
|
|
2003-02-27 16:51:55 +03: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 19:03:16 +04:00
|
|
|
|
2015-02-25 18:26:51 +03:00
|
|
|
[scriptable, uuid(e795239e-9d3c-47c4-b063-9e600fb3b287)]
|
2000-07-18 19:03:16 +04:00
|
|
|
interface nsIDocumentLoaderFactory : nsISupports {
|
|
|
|
nsIContentViewer createInstance(in string aCommand,
|
|
|
|
in nsIChannel aChannel,
|
|
|
|
in nsILoadGroup aLoadGroup,
|
2015-02-25 18:26:51 +03:00
|
|
|
in ACString aContentType,
|
2013-11-15 11:12:43 +04:00
|
|
|
in nsIDocShell aContainer,
|
2000-07-18 19:03:16 +04:00
|
|
|
in nsISupports aExtraInfo,
|
|
|
|
out nsIStreamListener aDocListenerResult);
|
|
|
|
|
|
|
|
nsIContentViewer createInstanceForDocument(in nsISupports aContainer,
|
|
|
|
in nsIDocument aDocument,
|
|
|
|
in string aCommand);
|
2001-11-06 04:24:39 +03:00
|
|
|
|
2006-11-22 21:27:54 +03: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 19:03:16 +04:00
|
|
|
};
|