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"
10 interface nsIDocumentViewer
;
11 interface nsIStreamListener
;
12 interface nsIDocShell
;
13 interface nsILoadGroup
;
14 interface nsIPrincipal
;
19 * To get a component that implements nsIDocumentLoaderFactory
20 * for a given mimetype, use nsICategoryManager to find an entry
21 * with the mimetype as its name in the category "Gecko-Content-Viewers".
22 * The value of the entry is the contractid of the component.
23 * The component is a service, so use GetService, not CreateInstance to get it.
26 [scriptable
, uuid(e795239e
-9d3c
-47c4
-b063
-9e600fb3b287
)]
27 interface nsIDocumentLoaderFactory
: nsISupports
{
28 nsIDocumentViewer createInstance
(in string aCommand
,
29 in nsIChannel aChannel
,
30 in nsILoadGroup aLoadGroup
,
31 in ACString aContentType
,
32 in nsIDocShell aContainer
,
33 in nsISupports aExtraInfo
,
34 out nsIStreamListener aDocListenerResult
);
36 nsIDocumentViewer createInstanceForDocument
(in nsISupports aContainer
,
37 in Document aDocument
,