Struct xpcom::interfaces::nsIQuotaManagerService
[−]
[src]
#[repr(C)]pub struct nsIQuotaManagerService { /* fields omitted */ }
interface nsIQuotaManagerService : nsISupports
Methods
impl nsIQuotaManagerService
[src]
pub fn coerce<T: nsIQuotaManagerServiceCoerce>(&self) -> &T
[src]
Cast this nsIQuotaManagerService
to one of its base interfaces.
impl nsIQuotaManagerService
[src]
pub unsafe fn Init(&self, _retval: *mut *const nsIQuotaRequest) -> nsresult
[src]
/**
* Initializes storage directory. This can be used in tests to verify
* upgrade methods.
*
* If the dom.quotaManager.testing preference is not true the call will be
* a no-op.
*/
[must_use] nsIQuotaRequest init ();
pub unsafe fn InitStoragesForPrincipal(
&self,
aPrincipal: *const nsIPrincipal,
aPersistenceType: &nsACString,
_retval: *mut *const nsIQuotaRequest
) -> nsresult
[src]
&self,
aPrincipal: *const nsIPrincipal,
aPersistenceType: &nsACString,
_retval: *mut *const nsIQuotaRequest
) -> nsresult
/**
* Initializes storages for the given principal. This can be used in tests to
* verify origin initialization.
*
* If the dom.quotaManager.testing preference is not true the call will be
* a no-op.
*
* @param aPrincipal
* A principal for the origin whose storages are to be initialized.
* @param aPersistenceType
* A string that tells what persistence type of storages will be
* initialized.
*/
[must_use] nsIQuotaRequest initStoragesForPrincipal (in nsIPrincipal aPrincipal, in ACString aPersistenceType);
pub unsafe fn GetUsage(
&self,
aCallback: *const nsIQuotaUsageCallback,
aGetAll: bool,
_retval: *mut *const nsIQuotaUsageRequest
) -> nsresult
[src]
&self,
aCallback: *const nsIQuotaUsageCallback,
aGetAll: bool,
_retval: *mut *const nsIQuotaUsageRequest
) -> nsresult
/**
* Schedules an asynchronous callback that will inspect all origins and
* return the total amount of disk space being used by storages for each
* origin separately.
*
* @param aCallback
* The callback that will be called when the usage is available.
* @param aGetAll
* An optional boolean to indicate inspection of all origins,
* including internal ones.
*/
[must_use] nsIQuotaUsageRequest getUsage (in nsIQuotaUsageCallback aCallback, [optional] in boolean aGetAll);
pub unsafe fn GetUsageForPrincipal(
&self,
aPrincipal: *const nsIPrincipal,
aCallback: *const nsIQuotaUsageCallback,
aGetGroupUsage: bool,
_retval: *mut *const nsIQuotaUsageRequest
) -> nsresult
[src]
&self,
aPrincipal: *const nsIPrincipal,
aCallback: *const nsIQuotaUsageCallback,
aGetGroupUsage: bool,
_retval: *mut *const nsIQuotaUsageRequest
) -> nsresult
/**
* Schedules an asynchronous callback that will return the total amount of
* disk space being used by storages for the given origin.
*
* @param aPrincipal
* A principal for the origin whose usage is being queried.
* @param aCallback
* The callback that will be called when the usage is available.
* @param aGetGroupUsage
* An optional flag to indicate whether getting group usage and limit
* or origin usage and file usage. The default value is false.
* Note: Origin usage here represents total usage of an origin. However,
* group usage here represents only non-persistent usage of a group.
*/
[must_use] nsIQuotaUsageRequest getUsageForPrincipal (in nsIPrincipal aPrincipal, in nsIQuotaUsageCallback aCallback, [optional] in boolean aGetGroupUsage);
pub unsafe fn Clear(&self, _retval: *mut *const nsIQuotaRequest) -> nsresult
[src]
/**
* Removes all storages. The files may not be deleted immediately depending
* on prohibitive concurrent operations.
* Be careful, this removes *all* the data that has ever been stored!
*
* If the dom.quotaManager.testing preference is not true the call will be
* a no-op.
*/
[must_use] nsIQuotaRequest clear ();
pub unsafe fn ClearStoragesForPrincipal(
&self,
aPrincipal: *const nsIPrincipal,
aPersistenceType: &nsACString,
aClearAll: bool,
_retval: *mut *const nsIQuotaRequest
) -> nsresult
[src]
&self,
aPrincipal: *const nsIPrincipal,
aPersistenceType: &nsACString,
aClearAll: bool,
_retval: *mut *const nsIQuotaRequest
) -> nsresult
/**
* Removes all storages stored for the given principal. The files may not be
* deleted immediately depending on prohibitive concurrent operations.
*
* @param aPrincipal
* A principal for the origin whose storages are to be cleared.
* @param aPersistenceType
* An optional string that tells what persistence type of storages
* will be cleared.
* @param aClearAll
* An optional boolean to indicate clearing all storages under the
* given origin.
*/
[must_use] nsIQuotaRequest clearStoragesForPrincipal (in nsIPrincipal aPrincipal, [optional] in ACString aPersistenceType, [optional] in boolean aClearAll);
pub unsafe fn Reset(&self, _retval: *mut *const nsIQuotaRequest) -> nsresult
[src]
/**
* Resets quota and storage management. This can be used to force
* reinitialization of the temp storage, for example when the pref for
* overriding the temp storage limit has changed.
* Be carefull, this invalidates all live storages!
*
* If the dom.quotaManager.testing preference is not true the call will be
* a no-op.
*/
[must_use] nsIQuotaRequest reset ();
pub unsafe fn Persisted(
&self,
aPrincipal: *const nsIPrincipal,
_retval: *mut *const nsIQuotaRequest
) -> nsresult
[src]
&self,
aPrincipal: *const nsIPrincipal,
_retval: *mut *const nsIQuotaRequest
) -> nsresult
/**
* Check if given origin is persisted.
*
* @param aPrincipal
* A principal for the origin which we want to check.
*/
[must_use] nsIQuotaRequest persisted (in nsIPrincipal aPrincipal);
pub unsafe fn Persist(
&self,
aPrincipal: *const nsIPrincipal,
_retval: *mut *const nsIQuotaRequest
) -> nsresult
[src]
&self,
aPrincipal: *const nsIPrincipal,
_retval: *mut *const nsIQuotaRequest
) -> nsresult
/**
* Persist given origin.
*
* @param aPrincipal
* A principal for the origin which we want to persist.
*/
[must_use] nsIQuotaRequest persist (in nsIPrincipal aPrincipal);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIQuotaManagerService
[src]
const IID: nsIID
IID: nsIID = nsID(456985144, 33105, 19705, [137, 250, 79, 146, 194, 239, 14, 126])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIQuotaManagerService
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIQuotaManagerService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.