зеркало из https://github.com/mozilla/gecko-dev.git
Added hasSubstitutions for Hyatt & chrome protocol.
This commit is contained in:
Родитель
ca37059e30
Коммит
8ecf4013dc
|
@ -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;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Загрузка…
Ссылка в новой задаче