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 nsIFile; |
michael@0 | 9 | |
michael@0 | 10 | /** |
michael@0 | 11 | * This interface provides a means for enumerating the contents of a directory. |
michael@0 | 12 | * It is similar to nsISimpleEnumerator except the retrieved entries are QI'ed |
michael@0 | 13 | * to nsIFile, and there is a mechanism for closing the directory when the |
michael@0 | 14 | * enumeration is complete. |
michael@0 | 15 | */ |
michael@0 | 16 | [scriptable, uuid(31f7f4ae-6916-4f2d-a81e-926a4e3022ee)] |
michael@0 | 17 | interface nsIDirectoryEnumerator : nsISupports |
michael@0 | 18 | { |
michael@0 | 19 | /** |
michael@0 | 20 | * Retrieves the next file in the sequence. The "nextFile" element is the |
michael@0 | 21 | * first element upon the first call. This attribute is null if there is no |
michael@0 | 22 | * next element. |
michael@0 | 23 | */ |
michael@0 | 24 | readonly attribute nsIFile nextFile; |
michael@0 | 25 | |
michael@0 | 26 | /** |
michael@0 | 27 | * Closes the directory being enumerated, releasing the system resource. |
michael@0 | 28 | * @throws NS_OK if the call succeeded and the directory was closed. |
michael@0 | 29 | * NS_ERROR_FAILURE if the directory close failed. |
michael@0 | 30 | * It is safe to call this function many times. |
michael@0 | 31 | */ |
michael@0 | 32 | void close(); |
michael@0 | 33 | }; |
michael@0 | 34 |