Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsCacheDevice Class Reference

#include <nsCacheDevice.h>

Inheritance diagram for nsCacheDevice:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 nsCacheDevice ()
virtual ~nsCacheDevice ()
virtual nsresult Init ()=0
virtual nsresult Shutdown ()=0
virtual const char * GetDeviceID (void)=0
virtual nsCacheEntryFindEntry (nsCString *key, PRBool *collision)=0
virtual nsresult DeactivateEntry (nsCacheEntry *entry)=0
virtual nsresult BindEntry (nsCacheEntry *entry)=0
virtual void DoomEntry (nsCacheEntry *entry)=0
virtual nsresult OpenInputStreamForEntry (nsCacheEntry *entry, nsCacheAccessMode mode, PRUint32 offset, nsIInputStream **result)=0
virtual nsresult OpenOutputStreamForEntry (nsCacheEntry *entry, nsCacheAccessMode mode, PRUint32 offset, nsIOutputStream **result)=0
virtual nsresult GetFileForEntry (nsCacheEntry *entry, nsIFile **result)=0
virtual nsresult OnDataSizeChange (nsCacheEntry *entry, PRInt32 deltaSize)=0
virtual nsresult Visit (nsICacheVisitor *visitor)=0
virtual nsresult EvictEntries (const char *clientID)=0
 Device must evict entries associated with clientID.

Detailed Description

Definition at line 58 of file nsCacheDevice.h.


Constructor & Destructor Documentation

Definition at line 60 of file nsCacheDevice.h.

virtual nsCacheDevice::~nsCacheDevice ( ) [inline, virtual]

Definition at line 61 of file nsCacheDevice.h.


Member Function Documentation

virtual nsresult nsCacheDevice::BindEntry ( nsCacheEntry entry) [pure virtual]
virtual nsresult nsCacheDevice::DeactivateEntry ( nsCacheEntry entry) [pure virtual]

Implemented in nsMemoryCacheDevice, nsDiskCacheDevice, and nsDiskCacheDevice.

Here is the caller graph for this function:

virtual void nsCacheDevice::DoomEntry ( nsCacheEntry entry) [pure virtual]

Implemented in nsDiskCacheDevice, nsMemoryCacheDevice, and nsDiskCacheDevice.

Here is the caller graph for this function:

virtual nsresult nsCacheDevice::EvictEntries ( const char *  clientID) [pure virtual]

Device must evict entries associated with clientID.

If clientID == nsnull, all entries must be evicted. Active entries must be doomed, rather than evicted.

Implemented in nsDiskCacheDevice, nsMemoryCacheDevice, and nsDiskCacheDevice.

virtual nsCacheEntry* nsCacheDevice::FindEntry ( nsCString key,
PRBool collision 
) [pure virtual]
virtual const char* nsCacheDevice::GetDeviceID ( void  ) [pure virtual]

Implemented in nsDiskCacheDevice, nsMemoryCacheDevice, and nsDiskCacheDevice.

Here is the caller graph for this function:

virtual nsresult nsCacheDevice::GetFileForEntry ( nsCacheEntry entry,
nsIFile **  result 
) [pure virtual]

Implemented in nsDiskCacheDevice, nsMemoryCacheDevice, and nsDiskCacheDevice.

Here is the caller graph for this function:

virtual nsresult nsCacheDevice::Init ( ) [pure virtual]
virtual nsresult nsCacheDevice::OnDataSizeChange ( nsCacheEntry entry,
PRInt32  deltaSize 
) [pure virtual]

Implemented in nsDiskCacheDevice, nsMemoryCacheDevice, and nsDiskCacheDevice.

Here is the caller graph for this function:

virtual nsresult nsCacheDevice::OpenInputStreamForEntry ( nsCacheEntry entry,
nsCacheAccessMode  mode,
PRUint32  offset,
nsIInputStream **  result 
) [pure virtual]

Implemented in nsDiskCacheDevice, nsMemoryCacheDevice, and nsDiskCacheDevice.

Here is the caller graph for this function:

virtual nsresult nsCacheDevice::OpenOutputStreamForEntry ( nsCacheEntry entry,
nsCacheAccessMode  mode,
PRUint32  offset,
nsIOutputStream **  result 
) [pure virtual]

Implemented in nsDiskCacheDevice, nsMemoryCacheDevice, and nsDiskCacheDevice.

Here is the caller graph for this function:

virtual nsresult nsCacheDevice::Shutdown ( ) [pure virtual]
virtual nsresult nsCacheDevice::Visit ( nsICacheVisitor visitor) [pure virtual]

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