/* *ThisSourceCodeFormissubjecttothetermsoftheMozillaPublic *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
[scriptable, uuid(71b49926-fd4e-43e2-ab8d-d9b049413c0b)]
interface nsIDataStorageManager : nsISupports { // Because of its specialized nature, nsIDataStorage instances are limited to // the following pre-defined set. To add a new type of data storage, add an // entry to the enum and get review from someone on the security and privacy // engineering team.
cenum DataStorage : 8 {
AlternateServices,
ClientAuthRememberList,
SiteSecurityServiceState,
SiteIntegrityServiceState,
};
// Given a key and a type of data, returns a value. Returns // NS_ERROR_NOT_AVAILABLE if the key is not present for that type of data. // This operation may block the current thread until the background task // reading the backing file from disk has completed.
ACString get(in ACString key, in nsIDataStorage_DataType type);
// Give a key, value, and type of data, adds an entry as appropriate. // Updates existing entries. // This operation may block the current thread until the background task // reading the backing file from disk has completed. void put(in ACString key, in ACString value, in nsIDataStorage_DataType type);
// Given a key and type of data, removes an entry if present. // This operation may block the current thread until the background task // reading the backing file from disk has completed. void remove(in ACString key, in nsIDataStorage_DataType type);
// Removes all entries of all types of data. // This operation may block the current thread until the background task // reading the backing file from disk has completed. void clear();
// Returns true if this data storage is ready to be used. To avoid blocking // when calling other nsIDataStorage functions, callers may wish to first // ensure this function returns true.
boolean isReady();
// Read all of the data items. // This operation may block the current thread until the background task // reading the backing file from disk has completed.
Array<nsIDataStorageItem> getAll();
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.