equal
deleted
inserted
replaced
29 #include <apgcli.h> |
29 #include <apgcli.h> |
30 #include <W32STD.H> |
30 #include <W32STD.H> |
31 #include <APGTASK.H> |
31 #include <APGTASK.H> |
32 #include <oommonitorsession.h> |
32 #include <oommonitorsession.h> |
33 #include <e32property.h> |
33 #include <e32property.h> |
34 #ifndef FF_OOM_MONITOR2_COMPONENT |
34 #ifndef BRDO_OOM_MONITOR2_COMPONENT_FF |
35 #include <systemwarninglevels.hrh> |
35 #include <systemwarninglevels.hrh> |
36 #endif |
36 #endif |
37 #include "browser_platform_variant.hrh" |
37 #include "browser_platform_variant.hrh" |
38 |
38 |
39 // CONSTANTS |
39 // CONSTANTS |
209 aOperation == WidgetRestart ) //WidgetUI has died -> re-launch |
209 aOperation == WidgetRestart ) //WidgetUI has died -> re-launch |
210 { |
210 { |
211 TInt bytesAvailaible(0); |
211 TInt bytesAvailaible(0); |
212 if (aOperation != WidgetSelect && aOperation != LaunchFullscreen ) |
212 if (aOperation != WidgetSelect && aOperation != LaunchFullscreen ) |
213 { |
213 { |
214 #ifdef FF_OOM_MONITOR2_COMPONENT |
214 #ifdef BRDO_OOM_MONITOR2_COMPONENT_FF |
215 err = monitorSession.RequestOptionalRam(KMemoryToLaunchWidgetUi, KMemoryToLaunchWidgetUi,KUidWidgetOOMPlugin, bytesAvailaible); |
215 err = monitorSession.RequestOptionalRam(KMemoryToLaunchWidgetUi, KMemoryToLaunchWidgetUi,KUidWidgetOOMPlugin, bytesAvailaible); |
216 #else |
216 #else |
217 TMemoryInfoV1Buf info; |
217 TMemoryInfoV1Buf info; |
218 UserHal::MemoryInfo(info); |
218 UserHal::MemoryInfo(info); |
219 err = info().iFreeRamInBytes > KMemoryToLaunchWidgetUi + KRAMGOODTHRESHOLD ? KErrNone : KErrNoMemory; |
219 err = info().iFreeRamInBytes > KMemoryToLaunchWidgetUi + KRAMGOODTHRESHOLD ? KErrNone : KErrNoMemory; |