Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

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: Sheppy, michal.novotny, trevorh, Arehman4
 Last updated by: Sheppy,