Added hasSubstitutions for Hyatt & chrome protocol.

git-svn-id: svn://10.0.0.236/trunk@73396 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com 2000-06-28 06:54:56 +00:00
parent f912d63a39
commit 20dce9fab9
2 changed files with 13 additions and 0 deletions

View File

@ -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);
};

View File

@ -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;
}
////////////////////////////////////////////////////////////////////////////////