"Fossies" - the Fresh Open Source Software Archive

Member "firefox-69.0.1/docshell/base/nsIDocumentLoaderFactory.idl" (17 Sep 2019, 1559 Bytes) of package /linux/www/firefox-69.0.1.source.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) IDL source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "nsIDocumentLoaderFactory.idl": 60.7.2_vs_68.0.

    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 };