webengine/memoryplugin/src/memoryplugin.cpp
changeset 11 c8a366e56285
parent 0 dd21522fd290
equal deleted inserted replaced
10:a359256acfc6 11:c8a366e56285
    19 
    19 
    20 #include <ecom/ecom.h>
    20 #include <ecom/ecom.h>
    21 #include <ecom/implementationproxy.h>
    21 #include <ecom/implementationproxy.h>
    22 #include <oommonitorplugin.h>
    22 #include <oommonitorplugin.h>
    23 
    23 
       
    24 /*
       
    25  * Note:  Even though we create this plugin to deal with memory events from the system for handling OOM,
       
    26  * there is no code further down the line that actually handles them.  We totally ignore these events.
       
    27  * This is because the system has too high of an OOM threshold.
       
    28  * I.e. the system may only have 6m left and think it's out of memory, however, the browser can still render
       
    29  * many pages in only 6m.  So, these system events are ignored and the browser handles OOM with its own mechanism.
       
    30  * (See OOMStopper and OOMHandler)
       
    31  */
    24 TAny* CreateBrowserOOMPlugin()
    32 TAny* CreateBrowserOOMPlugin()
    25 	{
    33 	{
    26 	const TUid KBrowserAppUid = { 0x10008d39 };
    34 	const TUid KBrowserAppUid = { 0x10008d39 };
    27 	return CAppOomMonitorPlugin::NewL(KBrowserAppUid);
    35 	return CAppOomMonitorPlugin::NewL(KBrowserAppUid);
    28 	}
    36 	}