Source code

Revision control

Other Tools

1
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
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/. */
6
7
#include "nsISupports.idl"
8
9
interface nsIChannel;
10
interface nsIContentViewer;
11
interface nsIStreamListener;
12
interface nsIDocShell;
13
interface nsILoadGroup;
14
interface nsIPrincipal;
15
16
webidl Document;
17
18
/**
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.
24
*/
25
26
[scriptable, uuid(e795239e-9d3c-47c4-b063-9e600fb3b287)]
27
interface nsIDocumentLoaderFactory : nsISupports {
28
nsIContentViewer 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);
35
36
nsIContentViewer createInstanceForDocument(in nsISupports aContainer,
37
in Document aDocument,
38
in string aCommand);
39
};