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.

     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/. */
     7 #include "nsISupports.idl"
     9 interface nsIChannel;
    10 interface nsIContentViewer;
    11 interface nsIStreamListener;
    12 interface nsIDocShell;
    13 interface nsIDocument;
    14 interface nsILoadGroup;
    15 interface nsIPrincipal;
    17 /**
    18  * To get a component that implements nsIDocumentLoaderFactory
    19  * for a given mimetype, use nsICategoryManager to find an entry
    20  * with the mimetype as its name in the category "Gecko-Content-Viewers".
    21  * The value of the entry is the contractid of the component.
    22  * The component is a service, so use GetService, not CreateInstance to get it.
    23  */
    25 [scriptable, uuid(70905274-8494-4e39-b011-d559adde3733)]
    26 interface nsIDocumentLoaderFactory : nsISupports {
    27     nsIContentViewer createInstance(in string aCommand,
    28                               in nsIChannel aChannel,
    29                               in nsILoadGroup aLoadGroup,
    30                               in string aContentType, 
    31                               in nsIDocShell aContainer,
    32                               in nsISupports aExtraInfo,
    33                               out nsIStreamListener aDocListenerResult);
    35     nsIContentViewer createInstanceForDocument(in nsISupports aContainer,
    36                                          in nsIDocument aDocument,
    37                                          in string aCommand);
    39     /**
    40      * Create a blank document using the given loadgroup and given
    41      * principal.  aPrincipal is allowed to be null, in which case the
    42      * new document will get the about:blank codebase principal.
    43      */
    44     nsIDocument createBlankDocument(in nsILoadGroup aLoadGroup,
    45                                     in nsIPrincipal aPrincipal);
    46 };

mercurial