Bug 1874684 - Part 6: Limit day length calculations to safe integers. r=mgaudet
[gecko.git] / dom / quota / nsIQuotaRequests.idl
blob8b05717e834df3bc263f6286807fa318b4b25b73
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsISupports.idl"
9 interface nsIPrincipal;
10 interface nsIQuotaCallback;
11 interface nsIQuotaUsageCallback;
12 interface nsIVariant;
14 [scriptable, uuid(9af54222-0407-48fd-a4ab-9457c986fc49)]
15 interface nsIQuotaRequestBase : nsISupports
17 readonly attribute nsIPrincipal principal;
19 [must_use] readonly attribute nsresult resultCode;
21 [must_use] readonly attribute ACString resultName;
24 [scriptable, uuid(166e28e6-cf6d-4927-a6d7-b51bca9d3469)]
25 interface nsIQuotaUsageRequest : nsIQuotaRequestBase
27 // The result can contain one of these types:
28 // array of nsIQuotaUsageResult
29 // nsIQuotaOriginUsageResult
30 [must_use] readonly attribute nsIVariant result;
32 attribute nsIQuotaUsageCallback callback;
34 [must_use] void
35 cancel();
38 [scriptable, uuid(22890e3e-ff25-4372-9684-d901060e2f6c)]
39 interface nsIQuotaRequest : nsIQuotaRequestBase
41 // The result can contain one of these types:
42 // void
43 // bool
44 // nsIQuotaEstimateResult
45 // array of strings
46 [must_use] readonly attribute nsIVariant result;
48 attribute nsIQuotaCallback callback;