webengine/memoryplugin/src/memoryplugin.cpp
changeset 0 dd21522fd290
child 11 c8a366e56285
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implementation of OOM memory plugin. Registers Browser UID with
       
    15 *				 the framework to receive OOM notifications.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include <ecom/ecom.h>
       
    21 #include <ecom/implementationproxy.h>
       
    22 #include <oommonitorplugin.h>
       
    23 
       
    24 TAny* CreateBrowserOOMPlugin()
       
    25 	{
       
    26 	const TUid KBrowserAppUid = { 0x10008d39 };
       
    27 	return CAppOomMonitorPlugin::NewL(KBrowserAppUid);
       
    28 	}
       
    29 
       
    30 const TImplementationProxy ImplementationTable[] =
       
    31 	{
       
    32 	{{0x10281f93}, ::CreateBrowserOOMPlugin}
       
    33 	};
       
    34 
       
    35 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    36 	{
       
    37 	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy) ;
       
    38 	return ImplementationTable;
       
    39 	}