Bug 1436845: Part 1 - Add BasicDllServices; r=jimm

BasicDllServices is a simplified implementation that allows programs other than
Firefox to link against mozglue and access DLL services without requiring any
XPCOM baggage.
This commit is contained in:
Aaron Klotz 2018-02-13 16:03:11 -07:00
Родитель 86df7b05eb
Коммит 020963a272
1 изменённых файлов: 18 добавлений и 0 удалений

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

@ -107,6 +107,24 @@ protected:
virtual void NotifyDllLoad(const bool aIsMainThread, const nsString& aDllName) = 0;
};
#else
class BasicDllServices : public detail::DllServicesBase
{
public:
BasicDllServices()
{
Enable();
}
~BasicDllServices()
{
Disable();
}
virtual void DispatchDllLoadNotification(PCUNICODE_STRING aDllName) override {}
};
#endif // defined(MOZILLA_INTERNAL_API)
} // namespace glue