2015-11-22 12:43:55 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
|
|
|
/* 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 "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIPrincipal;
|
|
|
|
interface nsIQuotaCallback;
|
|
|
|
interface nsIQuotaUsageCallback;
|
2017-03-06 20:39:29 +03:00
|
|
|
interface nsIVariant;
|
2015-11-22 12:43:55 +03:00
|
|
|
|
|
|
|
[scriptable, uuid(9af54222-0407-48fd-a4ab-9457c986fc49)]
|
|
|
|
interface nsIQuotaRequestBase : nsISupports
|
|
|
|
{
|
|
|
|
readonly attribute nsIPrincipal principal;
|
|
|
|
|
2016-08-23 03:03:25 +03:00
|
|
|
[must_use] readonly attribute nsresult resultCode;
|
2015-11-22 12:43:55 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
[scriptable, uuid(166e28e6-cf6d-4927-a6d7-b51bca9d3469)]
|
|
|
|
interface nsIQuotaUsageRequest : nsIQuotaRequestBase
|
|
|
|
{
|
2017-03-22 14:13:38 +03:00
|
|
|
// The result can contain one of these types:
|
2017-03-22 14:14:04 +03:00
|
|
|
// array of nsIQuotaUsageResult
|
2017-03-22 14:13:48 +03:00
|
|
|
// nsIQuotaOriginUsageResult
|
2017-03-22 14:13:38 +03:00
|
|
|
[must_use] readonly attribute nsIVariant result;
|
2016-06-24 05:24:06 +03:00
|
|
|
|
2015-11-22 12:43:55 +03:00
|
|
|
attribute nsIQuotaUsageCallback callback;
|
|
|
|
|
2016-08-23 03:03:25 +03:00
|
|
|
[must_use] void
|
2015-11-22 12:43:55 +03:00
|
|
|
cancel();
|
|
|
|
};
|
|
|
|
|
|
|
|
[scriptable, uuid(22890e3e-ff25-4372-9684-d901060e2f6c)]
|
|
|
|
interface nsIQuotaRequest : nsIQuotaRequestBase
|
|
|
|
{
|
2017-03-22 14:13:38 +03:00
|
|
|
// The result can contain one of these types:
|
|
|
|
// void
|
|
|
|
// bool
|
2017-03-06 20:39:29 +03:00
|
|
|
[must_use] readonly attribute nsIVariant result;
|
|
|
|
|
2015-11-22 12:43:55 +03:00
|
|
|
attribute nsIQuotaCallback callback;
|
|
|
|
};
|