Tue, 06 Jan 2015 21:39:09 +0100
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: 4; 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 | |
michael@0 | 8 | interface nsIChannel; |
michael@0 | 9 | |
michael@0 | 10 | /** |
michael@0 | 11 | * An interface to access the the base channel |
michael@0 | 12 | * associated with a MultiPartChannel. |
michael@0 | 13 | */ |
michael@0 | 14 | |
michael@0 | 15 | [scriptable, uuid(4b04e835-d131-42af-8bf0-74289f99374f)] |
michael@0 | 16 | interface nsIMultiPartChannel : nsISupports |
michael@0 | 17 | { |
michael@0 | 18 | /** |
michael@0 | 19 | * readonly attribute to access the underlying channel |
michael@0 | 20 | */ |
michael@0 | 21 | readonly attribute nsIChannel baseChannel; |
michael@0 | 22 | |
michael@0 | 23 | /** |
michael@0 | 24 | * Attribute guaranteed to be different for different parts of |
michael@0 | 25 | * the same multipart document. |
michael@0 | 26 | */ |
michael@0 | 27 | readonly attribute uint32_t partID; |
michael@0 | 28 | |
michael@0 | 29 | /** |
michael@0 | 30 | * Set to true when onStopRequest is received from the base channel. |
michael@0 | 31 | * The listener can check this from its onStopRequest to determine |
michael@0 | 32 | * whether more data can be expected. |
michael@0 | 33 | */ |
michael@0 | 34 | readonly attribute boolean isLastPart; |
michael@0 | 35 | }; |