Remove #ifdef 0 functions in nsNPAPIPluginParent which definitely won't live there. Some (memory allocation/deallocation) are local, while others should just be instance methods on the NPP wrappers.

This commit is contained in:
Benjamin Smedberg 2009-08-14 14:47:30 -04:00
Родитель 3d6f398809
Коммит 97dfb1e921
1 изменённых файлов: 0 добавлений и 71 удалений

Просмотреть файл

@ -259,15 +259,6 @@ private:
// here, then wrap up the responses and send them back to the
// child process.
bool
NPN_SetProperty(NPP aInstance,
NPObject* aObj,
NPIdentifier aPropName,
const NPVariant* aValue)
{
return mNPNIface->setproperty(aInstance, aObj, aPropName, aValue);
}
NPIdentifier
NPN_GetIntIdentifier(int32_t aInt)
{
@ -302,68 +293,6 @@ private:
return mNPNIface->intfromidentifier(aIdentifier);
}
NPError
NPN_GetValue(NPP aInstance,
NPNVariable aVariable,
void* aValue)
{
return mNPNIface->getvalue(aInstance, aVariable, aValue);
}
NPError
NPN_SetValue(NPP aInstance,
NPPVariable aVariable,
void* aValue)
{
return mNPNIface->setvalue(aInstance, aVariable, aValue);
}
bool
NPN_HasProperty(NPP aInstance,
NPObject* aObj,
NPIdentifier aPropName)
{
return mNPNIface->hasproperty(aInstance, aObj, aPropName);
}
NPObject*
NPN_CreateObject(NPP aInstance,
NPClass* aClass)
{
return mNPNIface->createobject(aInstance, aClass);
}
const char*
NPN_UserAgent(NPP aInstance)
{
return mNPNIface->uagent(aInstance);
}
NPObject*
NPN_RetainObject(NPObject* aObj)
{
return mNPNIface->retainobject(aObj);
}
void
NPN_ReleaseObject(NPObject* aObj)
{
return mNPNIface->releaseobject(aObj);
}
void*
NPN_MemAlloc(uint32_t aSize)
{
return mNPNIface->memalloc(aSize);
}
void
NPN_MemFree(void* aPtr)
{
return mNPNIface->memfree(aPtr);
}
// NPRuntime bindings from Gecko->child and child->Gecko.
static base::hash_map<int, PluginNPObject*> sNPObjects;
static int sNextNPObjectId = 0;