webengine/osswebengine/MemoryManager/Inc/MemoryPool.h
changeset 37 cb62a4f66ebe
parent 16 a359256acfc6
child 59 1f3c3f2f5b0a
child 65 5bfc169077b2
equal deleted inserted replaced
36:0ed94ceaa377 37:cb62a4f66ebe
    19 
    19 
    20 //  INCLUDES
    20 //  INCLUDES
    21 
    21 
    22 #include <e32base.h>
    22 #include <e32base.h>
    23 #include <e32std.h>
    23 #include <e32std.h>
    24 #include "MemoryManager.h"
    24 #include <aknglobalnote.h>
       
    25 #include <MemoryManager.h>
    25 
    26 
    26 // CONSTANTS
    27 // CONSTANTS
    27 
    28 
    28 // MACROS
    29 // MACROS
    29 
    30 
   354         TAny* DoAlloc( TUint aSize );
   355         TAny* DoAlloc( TUint aSize );
   355         TBool PreCheck( TUint aTotalSize, TUint aMaxBufSize, const TDesC8& aChecker );
   356         TBool PreCheck( TUint aTotalSize, TUint aMaxBufSize, const TDesC8& aChecker );
   356         TUint PostCheck();
   357         TUint PostCheck();
   357         TUint FreeMemory( TFreeMem& aFree );
   358         TUint FreeMemory( TFreeMem& aFree );
   358         void RestoreRescueBuffer();
   359         void RestoreRescueBuffer();
       
   360         void InitOOMDialog();
       
   361         void ResetOOMDialogDisplayed();
   359 #ifdef OOM_LOGGING         
   362 #ifdef OOM_LOGGING         
   360         void DumpHeapLogs();
   363         void DumpHeapLogs();
   361 #endif        
   364 #endif        
   362     private:
   365     private:
   363     	void InitLocal();
   366     	void InitLocal();
   364     	
   367     	
   365     	RSymbianDLHeap *iAlloc;
   368     	RSymbianDLHeap *iAlloc;
       
   369     	// Out of memory dialog and localized resource message
       
   370         void ShowOOMDialog();
       
   371         
       
   372         CAknGlobalNote* iOOMErrorDialog;
       
   373         HBufC *iOOMMessage;
       
   374         bool isInitted;
       
   375         bool iOOMDisplayed;
   366     };
   376     };
   367 
   377 
   368 #endif
   378 #endif