uriloader/base/nsIContentHandler.idl

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #include "nsISupports.idl"
     7 interface nsIRequest;
     8 interface nsIInterfaceRequestor;
    10 [scriptable, uuid(49439df2-b3d2-441c-bf62-866bdaf56fd2)]
    11 interface nsIContentHandler : nsISupports
    12 {
    13   /**
    14    * Tells the content handler to take over handling the content. If this
    15    * function succeeds, the URI Loader will leave this request alone, ignoring
    16    * progress notifications. Failure of this method will cause the request to be
    17    * cancelled, unless the error code is NS_ERROR_WONT_HANDLE_CONTENT (see
    18    * below).
    19    *
    20    * @param aWindowContext
    21    *        Window context, used to get things like the current nsIDOMWindow
    22    *        for this request. May be null.
    23    * @param aContentType
    24    *        The content type of aRequest
    25    * @param aRequest
    26    *        A request whose content type is already known.
    27    *
    28    * @throw NS_ERROR_WONT_HANDLE_CONTENT Indicates that this handler does not
    29    *        want to handle this content. A different way for handling this
    30    *        content should be tried.
    31    */
    32   void handleContent(in string aContentType,
    33                      in nsIInterfaceRequestor aWindowContext,
    34                      in nsIRequest aRequest);
    35 };

mercurial