2015-11-22 12:43:55 +03:00
|
|
|
/* 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 {
|
|
|
|
|
2020-05-05 09:25:18 +03:00
|
|
|
struct StorageNameResponse
|
|
|
|
{
|
|
|
|
nsString name;
|
|
|
|
};
|
|
|
|
|
2020-02-22 10:57:28 +03:00
|
|
|
struct StorageInitializedResponse
|
|
|
|
{
|
|
|
|
bool initialized;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct TemporaryStorageInitializedResponse
|
|
|
|
{
|
|
|
|
bool initialized;
|
|
|
|
};
|
|
|
|
|
2017-03-06 20:39:21 +03:00
|
|
|
struct InitResponse
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2018-10-02 17:08:43 +03:00
|
|
|
struct InitTemporaryStorageResponse
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2020-11-19 17:38:17 +03:00
|
|
|
struct InitializePersistentOriginResponse
|
|
|
|
{
|
|
|
|
bool created;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct InitializeTemporaryOriginResponse
|
|
|
|
{
|
|
|
|
bool created;
|
|
|
|
};
|
|
|
|
|
2015-11-22 12:43:55 +03:00
|
|
|
struct ClearOriginResponse
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2018-11-29 23:48:11 +03:00
|
|
|
struct ResetOriginResponse
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2017-03-06 20:39:25 +03:00
|
|
|
struct ClearDataResponse
|
2015-11-22 12:43:55 +03:00
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ClearAllResponse
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ResetAllResponse
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2016-08-25 05:19:31 +03:00
|
|
|
struct PersistedResponse
|
|
|
|
{
|
|
|
|
bool persisted;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PersistResponse
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2019-08-22 23:51:09 +03:00
|
|
|
struct EstimateResponse
|
|
|
|
{
|
|
|
|
uint64_t usage;
|
|
|
|
uint64_t limit;
|
|
|
|
};
|
|
|
|
|
2019-10-02 10:57:52 +03:00
|
|
|
struct ListOriginsResponse
|
2019-03-20 20:54:08 +03:00
|
|
|
{
|
|
|
|
nsCString[] origins;
|
|
|
|
};
|
|
|
|
|
2015-11-22 12:43:55 +03:00
|
|
|
union RequestResponse
|
|
|
|
{
|
|
|
|
nsresult;
|
2020-05-05 09:25:18 +03:00
|
|
|
StorageNameResponse;
|
2020-02-22 10:57:28 +03:00
|
|
|
StorageInitializedResponse;
|
|
|
|
TemporaryStorageInitializedResponse;
|
2017-03-06 20:39:21 +03:00
|
|
|
InitResponse;
|
2018-10-02 17:08:43 +03:00
|
|
|
InitTemporaryStorageResponse;
|
2020-11-19 17:38:17 +03:00
|
|
|
InitializePersistentOriginResponse;
|
|
|
|
InitializeTemporaryOriginResponse;
|
2015-11-22 12:43:55 +03:00
|
|
|
ClearOriginResponse;
|
2018-11-29 23:48:11 +03:00
|
|
|
ResetOriginResponse;
|
2017-03-06 20:39:25 +03:00
|
|
|
ClearDataResponse;
|
2015-11-22 12:43:55 +03:00
|
|
|
ClearAllResponse;
|
|
|
|
ResetAllResponse;
|
2016-08-25 05:19:31 +03:00
|
|
|
PersistedResponse;
|
|
|
|
PersistResponse;
|
2019-08-22 23:51:09 +03:00
|
|
|
EstimateResponse;
|
2019-10-02 10:57:52 +03:00
|
|
|
ListOriginsResponse;
|
2015-11-22 12:43:55 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
protocol PQuotaRequest
|
|
|
|
{
|
|
|
|
manager PQuota;
|
|
|
|
|
|
|
|
child:
|
2016-01-27 00:51:53 +03:00
|
|
|
async __delete__(RequestResponse response);
|
2015-11-22 12:43:55 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace quota
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|