webengine/osswebengine/MemoryManager/Inc/MemoryPool.h
changeset 65 5bfc169077b2
parent 37 cb62a4f66ebe
equal deleted inserted replaced
42:d39add9822e2 65:5bfc169077b2
    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 <aknglobalnote.h>
    24 #include "MemoryManager.h"
    25 #include <MemoryManager.h>
       
    26 
    25 
    27 // CONSTANTS
    26 // CONSTANTS
    28 
    27 
    29 // MACROS
    28 // MACROS
    30 
    29 
   355         TAny* DoAlloc( TUint aSize );
   354         TAny* DoAlloc( TUint aSize );
   356         TBool PreCheck( TUint aTotalSize, TUint aMaxBufSize, const TDesC8& aChecker );
   355         TBool PreCheck( TUint aTotalSize, TUint aMaxBufSize, const TDesC8& aChecker );
   357         TUint PostCheck();
   356         TUint PostCheck();
   358         TUint FreeMemory( TFreeMem& aFree );
   357         TUint FreeMemory( TFreeMem& aFree );
   359         void RestoreRescueBuffer();
   358         void RestoreRescueBuffer();
   360         void InitOOMDialog();
       
   361         void ResetOOMDialogDisplayed();
       
   362 #ifdef OOM_LOGGING         
   359 #ifdef OOM_LOGGING         
   363         void DumpHeapLogs();
   360         void DumpHeapLogs();
   364 #endif        
   361 #endif        
   365     private:
   362     private:
   366     	void InitLocal();
   363     	void InitLocal();
   367     	
   364     	
   368     	RSymbianDLHeap *iAlloc;
   365     	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;
       
   376     };
   366     };
   377 
   367 
   378 #endif
   368 #endif