зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
86df7b05eb
Коммит
020963a272
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче