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_OKwhen the entry was doomed, orNS_ERROR_NOT_AVAILABLEwhen there is no such entry.
