Public Member Functions

nsIDOMStorageManager Interface Reference

import "nsIDOMStorageManager.idl";

List of all members.

Public Member Functions

long getUsage (in AString aOwnerDomain)
 Return the amount of disk space used by a domain.
void clearOfflineApps ()
 Clear keys owned by offline applications.
nsIDOMStorage getLocalStorageForPrincipal (in nsIPrincipal aPrincipal)
 Returns instance of localStorage object for aURI's origin.

Member Function Documentation

void nsIDOMStorageManager::clearOfflineApps (  ) 

Clear keys owned by offline applications.

All data owned by a domain with the "offline-app" permission will be removed from the database.

nsIDOMStorage nsIDOMStorageManager::getLocalStorageForPrincipal ( in nsIPrincipal  aPrincipal  ) 

Returns instance of localStorage object for aURI's origin.

This method ensures there is always only a single instance for a single origin.

long nsIDOMStorageManager::getUsage ( in AString  aOwnerDomain  ) 

Return the amount of disk space used by a domain.

Usage is checked against the domain of the page that set the key (the owner domain), not the domain of the storage object.

Parameters:
aOwnerDomain The domain to check.
Returns:
the space usage of the domain, in bytes.

The documentation for this interface was generated from the following file: