Added hasSubstitutions for Hyatt & chrome protocol.

This commit is contained in:
warren%netscape.com 2000-06-28 06:54:56 +00:00
Родитель ca37059e30
Коммит 8ecf4013dc
2 изменённых файлов: 13 добавлений и 0 удалений

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

@ -71,4 +71,9 @@ interface nsIResProtocolHandler : nsIProtocolHandler
* thread-safety concerns.
*/
nsISupportsArray getSubstitutions(in string root);
/**
* Returns true if substitutions are already defined for the specified root.
*/
boolean hasSubstitutions(in string root);
};

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

@ -379,4 +379,12 @@ nsResProtocolHandler::GetSubstitutions(const char *root, nsISupportsArray* *resu
return NS_OK;
}
NS_IMETHODIMP
nsResProtocolHandler::HasSubstitutions(const char *root, PRBool *result)
{
nsStringKey key(root);
*result = mSubstitutions.Exists(&key);
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////