uriloader/prefetch/nsIPrefetchService.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 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "nsISupports.idl"
michael@0 6
michael@0 7 interface nsIURI;
michael@0 8 interface nsIDOMNode;
michael@0 9 interface nsISimpleEnumerator;
michael@0 10
michael@0 11 [scriptable, uuid(bc4dbb34-b148-11e2-b82c-08002734a811)]
michael@0 12 interface nsIPrefetchService : nsISupports
michael@0 13 {
michael@0 14 /**
michael@0 15 * Enqueue a request to prefetch the specified URI.
michael@0 16 *
michael@0 17 * @param aURI the URI of the document to prefetch
michael@0 18 * @param aReferrerURI the URI of the referring page
michael@0 19 * @param aSource the DOM node (such as a <link> tag) that requested this
michael@0 20 * fetch, or null if the prefetch was not requested by a DOM node.
michael@0 21 * @param aExplicit the link element has an explicit prefetch link type
michael@0 22 */
michael@0 23 void prefetchURI(in nsIURI aURI,
michael@0 24 in nsIURI aReferrerURI,
michael@0 25 in nsIDOMNode aSource,
michael@0 26 in boolean aExplicit);
michael@0 27
michael@0 28 /**
michael@0 29 * Enumerate the items in the prefetch queue.
michael@0 30 */
michael@0 31 nsISimpleEnumerator enumerateQueue();
michael@0 32
michael@0 33 // XXX do we need a way to cancel prefetch requests?
michael@0 34 };

mercurial