docshell/base/nsIDocumentLoaderFactory.idl

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     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