Backed out 9 changesets (bug 1901851, bug 1728331) for causing remote worker crashes...
[gecko.git] / docshell / base / nsIDocumentLoaderFactory.idl
blob2bc607c9a517133b0bdbd5dd2a87b1a76c2d3b36
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsISupports.idl"
9 interface nsIChannel;
10 interface nsIDocumentViewer;
11 interface nsIStreamListener;
12 interface nsIDocShell;
13 interface nsILoadGroup;
14 interface nsIPrincipal;
16 webidl Document;
18 /**
19 * To get a component that implements nsIDocumentLoaderFactory
20 * for a given mimetype, use nsContentUtils::FindInternalDocumentViewer.
21 * This will look up the MIME type within the "Gecko-Content-Viewers" category,
22 * with additional handlers for other content types.
25 [scriptable, uuid(e795239e-9d3c-47c4-b063-9e600fb3b287)]
26 interface nsIDocumentLoaderFactory : nsISupports {
27 nsIDocumentViewer createInstance(in string aCommand,
28 in nsIChannel aChannel,
29 in nsILoadGroup aLoadGroup,
30 in ACString aContentType,
31 in nsIDocShell aContainer,
32 in nsISupports aExtraInfo,
33 out nsIStreamListener aDocListenerResult);
35 nsIDocumentViewer createInstanceForDocument(in nsISupports aContainer,
36 in Document aDocument,
37 in string aCommand);