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.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ :
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsISupports.idl"
9 [scriptable, function, uuid(8cbf2dc2-91e0-44bc-984f-553638412071)]
10 interface mozIStorageCompletionCallback : nsISupports {
11 /**
12 * Indicates that the event this callback was passed in for has completed.
13 *
14 * @param status
15 * The status of the call. Generally NS_OK if the operation
16 * completed successfully.
17 * @param value
18 * If the operation produces a result, the result. Otherwise,
19 * |null|.
20 *
21 * @see The calling method for expected values.
22 */
23 void complete(in nsresult status, [optional] in nsISupports value);
24 };