Lines Matching defs:service

387     // Release any service reference
836 NS_WARNING("No Component Registry file was found in the directory service");
1866 cid + NS_LITERAL_CSTRING("\" when a service for this CID already exists!");
1946 NS_LITERAL_CSTRING("\" when a service for this CID already exists! "
1947 "Add it to abusedContracts to track down the service consumer.");
2034 // test this first, since there's no point in returning a service during
2043 fprintf(stderr, "Getting service on shutdown. Denied.\n"
2072 nsCOMPtr<nsISupports> service;
2073 // We need to not be holding the service manager's monitor while calling
2075 // the service manager:
2078 rv = CreateInstance(aClass, nsnull, aIID, getter_AddRefs(service));
2101 entry->mServiceObject = service;
2102 *result = service.get();
2112 // check to see if we have a factory entry for the service
2172 // check to see if we have a factory entry for the service
2218 // Now we want to get the service if we already got it. If not, we dont want
2221 // test this first, since there's no point in returning a service during
2230 fprintf(stderr, "Checking for service on shutdown. Denied.\n"
2248 nsCOMPtr<nsISupports> service;
2249 rv = entry->mServiceObject->QueryInterface(aIID, getter_AddRefs(service));
2250 *result = (service!=nsnull);
2260 // Now we want to get the service if we already got it. If not, we dont want
2263 // test this first, since there's no point in returning a service during
2271 fprintf(stderr, "Checking for service on shutdown. Denied.\n"
2293 nsCOMPtr<nsISupports> service;
2294 rv = entry->mServiceObject->QueryInterface(aIID, getter_AddRefs(service));
2295 *result = (service!=nsnull);
2330 // test this first, since there's no point in returning a service during
2338 fprintf(stderr, "Getting service on shutdown. Denied.\n"
2368 nsCOMPtr<nsISupports> service;
2369 // We need to not be holding the service manager's monitor while calling
2371 // the service manager:
2374 rv = CreateInstanceByContractID(aContractID, nsnull, aIID, getter_AddRefs(service));
2399 entry->mServiceObject = service;
2400 *result = service.get();
2423 nsComponentManagerImpl::ReleaseService(const nsCID& aClass, nsISupports* service,
2426 NS_IF_RELEASE(service);
2431 nsComponentManagerImpl::ReleaseService(const char* aContractID, nsISupports* service,
2434 NS_IF_RELEASE(service);