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 {
|
|
|
|
|
2017-03-06 20:39:21 +03:00
|
|
|
struct InitResponse
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2018-10-02 17:08:43 +03:00
|
|
|
struct InitTemporaryStorageResponse
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2017-03-06 20:39:33 +03:00
|
|
|
struct InitOriginResponse
|
|
|
|
{
|
|
|
|
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-03-20 20:54:08 +03:00
|
|
|
struct ListInitializedOriginsResponse
|
|
|
|
{
|
|
|
|
nsCString[] origins;
|
|
|
|
};
|
|
|
|
|
2015-11-22 12:43:55 +03:00
|
|
|
union RequestResponse
|
|
|
|
{
|
|
|
|
nsresult;
|
2017-03-06 20:39:21 +03:00
|
|
|
InitResponse;
|
2018-10-02 17:08:43 +03:00
|
|
|
InitTemporaryStorageResponse;
|
2017-03-06 20:39:33 +03:00
|
|
|
InitOriginResponse;
|
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-03-20 20:54:08 +03:00
|
|
|
ListInitializedOriginsResponse;
|
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
|