docshell/base/nsIDocumentLoaderFactory.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
michael@0 2 *
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #include "nsISupports.idl"
michael@0 8
michael@0 9 interface nsIChannel;
michael@0 10 interface nsIContentViewer;
michael@0 11 interface nsIStreamListener;
michael@0 12 interface nsIDocShell;
michael@0 13 interface nsIDocument;
michael@0 14 interface nsILoadGroup;
michael@0 15 interface nsIPrincipal;
michael@0 16
michael@0 17 /**
michael@0 18 * To get a component that implements nsIDocumentLoaderFactory
michael@0 19 * for a given mimetype, use nsICategoryManager to find an entry
michael@0 20 * with the mimetype as its name in the category "Gecko-Content-Viewers".
michael@0 21 * The value of the entry is the contractid of the component.
michael@0 22 * The component is a service, so use GetService, not CreateInstance to get it.
michael@0 23 */
michael@0 24
michael@0 25 [scriptable, uuid(70905274-8494-4e39-b011-d559adde3733)]
michael@0 26 interface nsIDocumentLoaderFactory : nsISupports {
michael@0 27 nsIContentViewer createInstance(in string aCommand,
michael@0 28 in nsIChannel aChannel,
michael@0 29 in nsILoadGroup aLoadGroup,
michael@0 30 in string aContentType,
michael@0 31 in nsIDocShell aContainer,
michael@0 32 in nsISupports aExtraInfo,
michael@0 33 out nsIStreamListener aDocListenerResult);
michael@0 34
michael@0 35 nsIContentViewer createInstanceForDocument(in nsISupports aContainer,
michael@0 36 in nsIDocument aDocument,
michael@0 37 in string aCommand);
michael@0 38
michael@0 39 /**
michael@0 40 * Create a blank document using the given loadgroup and given
michael@0 41 * principal. aPrincipal is allowed to be null, in which case the
michael@0 42 * new document will get the about:blank codebase principal.
michael@0 43 */
michael@0 44 nsIDocument createBlankDocument(in nsILoadGroup aLoadGroup,
michael@0 45 in nsIPrincipal aPrincipal);
michael@0 46 };

mercurial