equal
deleted
inserted
replaced
105 // Destructor |
105 // Destructor |
106 // ----------------------------------------------------------------------------- |
106 // ----------------------------------------------------------------------------- |
107 // |
107 // |
108 CHttpCacheEntry::~CHttpCacheEntry() |
108 CHttpCacheEntry::~CHttpCacheEntry() |
109 { |
109 { |
|
110 #ifdef __CACHELOG__ |
|
111 HttpCacheUtil::WriteFormatLog(0, _L("Deleting CHttpCacheEntry %08x"), this); |
|
112 #endif |
110 // Clean up eviction handler |
113 // Clean up eviction handler |
111 if ( iEvictionCandidate && iEvictionHandler ) |
114 if ( iEvictionCandidate && iEvictionHandler ) |
112 { |
115 { |
|
116 #ifdef __CACHELOG__ |
|
117 HttpCacheUtil::WriteLog(0, _L("Removing from eviction candidate list")); |
|
118 #endif |
113 iEvictionHandler->Remove( *this ); |
119 iEvictionHandler->Remove( *this ); |
114 } |
120 } |
115 |
121 |
|
122 if( iDeleteObserver ) |
|
123 { |
|
124 #ifdef __CACHELOG__ |
|
125 HttpCacheUtil::WriteFormatLog(0, _L("Notifying delete observer %08x"), this); |
|
126 #endif |
|
127 iDeleteObserver->EntryDeleted(this); |
|
128 } |
|
129 |
116 // Close files, this will commit changes |
130 // Close files, this will commit changes |
117 iBodyFile.Close(); |
131 iBodyFile.Close(); |
118 |
132 |
119 // Clean up our memory |
133 // Clean up our memory |
120 delete iUrl; |
134 delete iUrl; |
493 { |
507 { |
494 iWriteHelper->Cancel(); |
508 iWriteHelper->Cancel(); |
495 } |
509 } |
496 } |
510 } |
497 |
511 |
|
512 void CHttpCacheEntry::SetDeleteObserver(MHttpCacheEntryDeleteObserver* aObserver) |
|
513 { |
|
514 iDeleteObserver = aObserver; |
|
515 } |
|
516 |
|
517 void CHttpCacheEntry::ClearDeleteObserver() |
|
518 { |
|
519 iDeleteObserver = NULL; |
|
520 } |
498 // End of File |
521 // End of File |