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.

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

mercurial