Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
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.
Removes all storages stored for the given pattern. The files may not be deleted immediately depending on prohibitive concurrent operations. In terms of locks, it will get an exclusive multi directory lock for given pattern. For example, given pattern {"userContextId":1007} and set of 3 origins ["http://www.mozilla.org^userContextId=1007", "http://www.example.org^userContextId=1007", "http://www.example.org^userContextId=1008"], the method will only lock 2 origins ["http://www.mozilla.org^userContextId=1007", "http://www.example.org^userContextId=1007"].
A pattern for the origins whose storages are to be cleared. Currently this is expected to be a JSON representation of the OriginAttributesPatternDictionary defined in ChromeUtils.webidl.
Removes all storages stored for the given principal. The files may not be deleted immediately depending on prohibitive concurrent operations.
A principal for the origin whose storages are to be cleared.
An optional string that tells what persistence type of storages will be cleared. If omitted (or void), all persistence types will be cleared for the principal. If a single persistence type ("persistent", "temporary", or "default") is provided, then only that persistence directory will be considered. Note that "persistent" is different than being "persisted" via persist() and is only for chrome principals. See bug 1354500 for more info. In general, null is the right thing to pass here.
An optional string that tells what client type of storages will be cleared. If omitted (or void), all client types will be cleared for the principal. If a single client type is provided from Client.h, then only that client's storage will be cleared. If you want to clear multiple client types (but not all), then you must call this method multiple times.
An optional boolean to indicate clearing all storages under the given origin.
Given an origin, asynchronously calculate its group quota usage and quota limit. An origin's group is the set of all origins that share the same eTLD+1. This method is intended to be used for our implementation of the StorageManager.estimate() method. When we fix bug 1305665 and stop tracking quota limits on a group basis, this method will switch to operating on origins. Callers should strongly consider whether they want to be using getUsageForPrincipal() instead.
This mechanism uses cached quota values and does not perform any I/O on its own, but it may be delayed by QuotaManager operations that do need to perform I/O on the QuotaManager I/O thread.
A principal for the origin (group) which we want to estimate.
Gets full origin metadata cached in memory for the given persistence type and origin.
NOTE: This operation may still be delayed by other operations on the QM I/O thread that are peforming I/O.
A string that tells what persistence type will be used for getting the metadata (either "temporary" or "default").
A principal that tells which origin will be used for getting the metadata.
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.
The callback that will be called when the usage is available.
An optional boolean to indicate inspection of all origins, including internal ones.
Schedules an asynchronous callback that will return the total amount of disk space being used by storages for the given origin.
A principal for the origin whose usage is being queried.
The callback that will be called when the usage is available.
An optional flag to indicate whether the cached usage should be obtained. The default value is false. Note that this operation may still be delayed by other operations on the QM I/O thread that are peforming I/O. Note: Origin usage here represents total usage of an origin. However, cached usage here represents only non-persistent usage of an origin.
Initializes persistent origin directory for the given origin. 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.
A principal for the origin whose directory is to be initialized.
Initializes temporary origin directory for the given origin. 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.
A string that tells what persistence type of origin will be initialized (temporary or default).
A principal for the origin whose directory is to be initialized.
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.
Resets all storages stored for the given principal.
If the dom.quotaManager.testing preference is not true the call will be a no-op.
A principal for the origin whose storages are to be reset.
An optional string that tells what persistence type of storages will be reset. If omitted (or void), all persistence types will be cleared for the principal. If a single persistence type ("persistent", "temporary", or "default") is provided, then only that persistence directory will be considered. Note that "persistent" is different than being "persisted" via persist() and is only for chrome principals. See bug 1354500 for more info. In general, null is the right thing to pass here.
An optional string that tells what client type of storages will be reset. If omitted (or void), all client types will be cleared for the principal. If a single client type is provided from Client.h, then only that client's storage will be cleared. If you want to clear multiple client types (but not all), then you must call this method multiple times.
Generated using TypeDoc
Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.
Returns
The resulting reference count.