Files
tubestation/dom/quota/nsIQuotaUtilsService.idl
Jan Varga 01952e6cea Bug 1933053 - QM: Introduce nsIQuotaUtilsService for accessing information available only in JS; r=dom-storage-reviewers,asuth
This patch introduces a new scriptable interface, nsIQuotaUtilsService,
designed to enable C++ code to access information that is exclusively available
through JavaScript system modules.

Differential Revision: https://phabricator.services.mozilla.com/D231264
2024-12-11 14:08:22 +00:00

25 lines
970 B
Plaintext

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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"
/**
* This interface provides utility methods for storage and quota management
* that require information only available in JavaScript system modules. It
* serves as a bridge for accessing such information from C++ code where direct
* access is not feasible.
*/
[scriptable, uuid(cdeca40d-74f4-44a2-beb3-84cd0bbc7785)]
interface nsIQuotaUtilsService : nsISupports
{
/**
* Retrieves the private identity id corresponding to the specified name.
*
* @param aName The name for which the private identity id is requested.
* @return The private identity id as an unsigned long.
*/
unsigned long getPrivateIdentityId(in AString aName);
};