Logo Search packages:      
Sourcecode: xulrunner version File versions

nsIApplicationCache Interface Reference

import "nsIApplicationCache.idl";

Inheritance diagram for nsIApplicationCache:


List of all members.

Detailed Description

Application caches store resources for offline use. Each application cache has a unique client ID for use with nsICacheService::openSession() to access the cache's entries.

Each entry in the application cache can be marked with a set of types, as discussed in the WHAT-WG offline applications specification.

All application caches with the same group ID belong to a cache group. Each group has one "active" cache that will service future loads. Inactive caches will be removed from the cache when they are no longer referenced.

Definition at line 115 of file nsIApplicationCache.idl.

Public Member Functions

void activate ()
void addNamespaces (in nsIArray namespaces)
void discard ()
void gatherEntries (in PRUint32 typeBits, out unsigned long count,[array, size_is(count)] out string keys)
nsIApplicationCacheNamespace getMatchingNamespace (in ACString key)
unsigned long getTypes (in ACString key)
void markEntry (in ACString key, in unsigned long typeBits)
void unmarkEntry (in ACString key, in unsigned long typeBits)
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Public Attributes

readonly attribute boolean active
readonly attribute ACString clientID
readonly attribute ACString groupID
const unsigned long ITEM_DYNAMIC = 1 << 3
const unsigned long ITEM_EXPLICIT = 1 << 1
const unsigned long ITEM_FALLBACK = 1 << 5
const unsigned long ITEM_FOREIGN = 1 << 4
const unsigned long ITEM_IMPLICIT = 1 << 2
const unsigned long ITEM_MANIFEST = 1 << 0
const unsigned long ITEM_OPPORTUNISTIC = 1 << 6
readonly attribute unsigned long usage

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

Generated by  Doxygen 1.6.0   Back to index