webengine/osswebengine/cache/inc/HttpCacheEntry.h
changeset 11 c8a366e56285
parent 10 a359256acfc6
equal deleted inserted replaced
10:a359256acfc6 11:c8a366e56285
    36 class MHTTPDataSupplier;
    36 class MHTTPDataSupplier;
    37 class RFileWriteStream;
    37 class RFileWriteStream;
    38 class RFileReadStream;
    38 class RFileReadStream;
    39 class CHttpCacheEvictionHandler;
    39 class CHttpCacheEvictionHandler;
    40 class CHttpCacheStreamHandler;
    40 class CHttpCacheStreamHandler;
       
    41 class CHttpCacheEntry;
    41 
    42 
    42 // CLASS DECLARATION
    43 // CLASS DECLARATION
       
    44 class MHttpCacheEntryDeleteObserver
       
    45     {
       
    46 public:
       
    47     virtual void EntryDeleted(CHttpCacheEntry *aEntry) = 0;
       
    48     };
    43 
    49 
    44 /**
    50 /**
    45 *
    51 *
    46 *  @lib
    52 *  @lib
    47 *  @since 3.1
    53 *  @since 3.1
   288          * @return
   294          * @return
   289          *
   295          *
   290          */
   296          */
   291          void UnsetEvictionCandidate() { iEvictionCandidate = EFalse; };    // this only exists because when EvictL removes an item from the eviction candidate list, it can't tell the entry that this has happened and so the entry then goes on to attempt to remove itself later when it's being deleted.
   297          void UnsetEvictionCandidate() { iEvictionCandidate = EFalse; };    // this only exists because when EvictL removes an item from the eviction candidate list, it can't tell the entry that this has happened and so the entry then goes on to attempt to remove itself later when it's being deleted.
   292 
   298 
       
   299         /**
       
   300          *
       
   301          * @since 7.1
       
   302          * @param
       
   303          * @return
       
   304          *
       
   305          */
       
   306          void SetDeleteObserver(MHttpCacheEntryDeleteObserver* aObserver);
       
   307 
       
   308         /**
       
   309          *
       
   310          * @since 7.1
       
   311          * @param
       
   312          * @return
       
   313          *
       
   314          */
       
   315          void ClearDeleteObserver();
       
   316          
   293     public :
   317     public :
   294 
   318 
   295         // support linked list
   319         // support linked list
   296         static const TInt iOffset;
   320         static const TInt iOffset;
   297 
   321 
   386         HBufC8*                         iHeaderBuffer;      // owned
   410         HBufC8*                         iHeaderBuffer;      // owned
   387         // TWriteStateBits
   411         // TWriteStateBits
   388         TUint32                         iWriteState;
   412         TUint32                         iWriteState;
   389         //
   413         //
   390         CHttpCacheEntryAsyncWriteHelper* iWriteHelper;      //owned
   414         CHttpCacheEntryAsyncWriteHelper* iWriteHelper;      //owned
       
   415         //
       
   416         MHttpCacheEntryDeleteObserver* iDeleteObserver;    // NOT owned
       
   417        
   391     };
   418     };
   392 
   419 
   393 #endif      // CHTTPCACHEENTRY_H
   420 #endif      // CHTTPCACHEENTRY_H
   394 
   421 
   395 // End of File
   422 // End of File