nsICacheListener

This interface is a cache listener.
Inherits from: nsISupports Last changed in Gecko 14 (Firefox 14 / Thunderbird 14 / SeaMonkey 2.11)

Method overview

void onCacheEntryAvailable(in nsICacheEntryDescriptor descriptor, in nsCacheAccessMode accessGranted, in nsresult status);
void onCacheEntryDoomed(in nsresult status);

Methods

onCacheEntryAvailable()

This method is called when the requested access (or appropriate subset) is acquired. The status parameter equals NS_OK on success. See nsICacheService for accessGranted values.

void onCacheEntryAvailable(
  in nsICacheEntryDescriptor descriptor,
  in nsCacheAccessMode accessGranted,
  in nsresult status
);
Parameters
descriptor
The cache entry descriptor.
accessGranted
The cache access mode.
status
The status of the cache entry availability.

onCacheEntryDoomed()

This method is called when the processing started by nsICacheSession.doomEntry() is completed.

void onCacheEntryDoomed(
  in nsresult status
);
Parameters
status
The status is NS_OK when the entry was doomed, or NS_ERROR_NOT_AVAILABLE when there is no such entry.

See also

Document Tags and Contributors

Contributors to this page: Arehman4, trevorh, Sheppy, michal.novotny
Last updated by: Sheppy,