fix for 94194
a=edburns@acm.org
r=idk@eng.sun.com
This commit is contained in:
idk%eng.sun.com 2001-08-09 09:22:19 +00:00
Родитель c2293a6634
Коммит 7c51b505be
2 изменённых файлов: 6 добавлений и 0 удалений

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

@ -29,5 +29,6 @@ interface nsIXPIDLServiceManager : nsISupports
void registerService(in nsCIDRef aClass, in nsISupports aService); void registerService(in nsCIDRef aClass, in nsISupports aService);
void unregisterService(in nsCIDRef aClass); void unregisterService(in nsCIDRef aClass);
nsISupports getService(in nsCIDRef aClass, in nsIIDRef aIID); nsISupports getService(in nsCIDRef aClass, in nsIIDRef aIID);
nsISupports getServiceByContractID(in string contractID, in nsIIDRef aIID);
void ReleaseService(in nsCIDRef aClass, in nsISupports service); void ReleaseService(in nsCIDRef aClass, in nsISupports service);
}; };

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

@ -39,6 +39,11 @@ NS_IMETHODIMP nsXPIDLServiceManager::UnregisterService(const nsCID & aClass) {
NS_IMETHODIMP nsXPIDLServiceManager::GetService(const nsCID & aClass, const nsIID & aIID, nsISupports **_retval) { NS_IMETHODIMP nsXPIDLServiceManager::GetService(const nsCID & aClass, const nsIID & aIID, nsISupports **_retval) {
return nsServiceManager::GetService(aClass,aIID,_retval); return nsServiceManager::GetService(aClass,aIID,_retval);
} }
NS_IMETHODIMP nsXPIDLServiceManager::GetServiceByContractID(const char *contractID, const nsIID & aIID, nsISupports **_retval) {
return nsServiceManager::GetService(contractID,aIID,_retval);
}
NS_IMETHODIMP nsXPIDLServiceManager::ReleaseService(const nsCID & aClass, nsISupports *service) { NS_IMETHODIMP nsXPIDLServiceManager::ReleaseService(const nsCID & aClass, nsISupports *service) {
return nsServiceManager::ReleaseService(aClass,service); return nsServiceManager::ReleaseService(aClass,service);
} }