dom/quota/nsIQuotaManager.idl

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* vim: set ts=2 et sw=2 tw=80: */
michael@0 3 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #include "nsISupports.idl"
michael@0 8
michael@0 9 interface nsIQuotaRequest;
michael@0 10 interface nsIURI;
michael@0 11 interface nsIUsageCallback;
michael@0 12
michael@0 13 [scriptable, builtinclass, uuid(2968fcd5-1872-4ddc-8c16-62b27e357f31)]
michael@0 14 interface nsIQuotaManager : nsISupports
michael@0 15 {
michael@0 16 /**
michael@0 17 * Schedules an asynchronous callback that will return the total amount of
michael@0 18 * disk space being used by storages for the given origin.
michael@0 19 *
michael@0 20 * @param aURI
michael@0 21 * The URI whose usage is being queried.
michael@0 22 * @param aCallback
michael@0 23 * The callback that will be called when the usage is available.
michael@0 24 */
michael@0 25 [optional_argc]
michael@0 26 nsIQuotaRequest
michael@0 27 getUsageForURI(in nsIURI aURI,
michael@0 28 in nsIUsageCallback aCallback,
michael@0 29 [optional] in unsigned long aAppId,
michael@0 30 [optional] in boolean aInMozBrowserOnly);
michael@0 31
michael@0 32 /**
michael@0 33 * Removes all storages. The files may not be deleted immediately depending
michael@0 34 * on prohibitive concurrent operations.
michael@0 35 * Be careful, this removes *all* the data that has ever been stored!
michael@0 36 *
michael@0 37 * If the dom.quotaManager.testing preference is not true the call will be
michael@0 38 * a no-op.
michael@0 39 */
michael@0 40 void
michael@0 41 clear();
michael@0 42
michael@0 43 /**
michael@0 44 * Removes all storages stored for the given URI. The files may not be
michael@0 45 * deleted immediately depending on prohibitive concurrent operations.
michael@0 46 *
michael@0 47 * @param aURI
michael@0 48 * The URI whose storages are to be cleared.
michael@0 49 */
michael@0 50 [optional_argc]
michael@0 51 void
michael@0 52 clearStoragesForURI(in nsIURI aURI,
michael@0 53 [optional] in unsigned long aAppId,
michael@0 54 [optional] in boolean aInMozBrowserOnly,
michael@0 55 [optional] in ACString aPersistenceType);
michael@0 56
michael@0 57 /**
michael@0 58 * Resets quota and storage management. This can be used to force
michael@0 59 * reinitialization of the temp storage, for example when the pref for
michael@0 60 * overriding the temp storage limit has changed.
michael@0 61 * Be carefull, this invalidates all live storages!
michael@0 62 *
michael@0 63 * If the dom.quotaManager.testing preference is not true the call will be
michael@0 64 * a no-op.
michael@0 65 */
michael@0 66 void
michael@0 67 reset();
michael@0 68 };

mercurial