gecko-dev/dom/quota/PQuotaRequest.ipdl
Jan Varga b968ceb813 Bug 1286798 - Part 18: Verify that data is persisted on disk; r=asuth,mrbkap
New methods open() and close() are added to the Storage WebIDL interface. They are only available when a pref is set and are only intended for testing. There's also a new method resetStoragesForPrincipal() which is used as a callback for close() since datastores don't release directory locks immediately. resetStoragesForPrincipal() requests an exclusive lock for given origin, so it must wait for any exising shared locks to be released.
2018-11-29 21:48:11 +01:00

79 lines
1.0 KiB
Plaintext

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
include protocol PQuota;
namespace mozilla {
namespace dom {
namespace quota {
struct InitResponse
{
};
struct InitTemporaryStorageResponse
{
};
struct InitOriginResponse
{
bool created;
};
struct ClearOriginResponse
{
};
struct ResetOriginResponse
{
};
struct ClearDataResponse
{
};
struct ClearAllResponse
{
};
struct ResetAllResponse
{
};
struct PersistedResponse
{
bool persisted;
};
struct PersistResponse
{
};
union RequestResponse
{
nsresult;
InitResponse;
InitTemporaryStorageResponse;
InitOriginResponse;
ClearOriginResponse;
ResetOriginResponse;
ClearDataResponse;
ClearAllResponse;
ResetAllResponse;
PersistedResponse;
PersistResponse;
};
protocol PQuotaRequest
{
manager PQuota;
child:
async __delete__(RequestResponse response);
};
} // namespace quota
} // namespace dom
} // namespace mozilla