Adding ldap optimization cuz dmose wants it real bad. r=dmose

This commit is contained in:
gagan%netscape.com 2001-02-07 02:14:52 +00:00
parent 720374d8c3
commit 8eba084e89
2 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,7 @@ interface nsIURI : nsISupports
const PRUint32 MAILTO = 11;
const PRUint32 NEWS = 12;
const PRUint32 RESOURCE = 13;
const PRUint32 LDAP = 14;
/**
* Returns a string representation of the URI. Setting the spec

View File

@ -429,6 +429,8 @@ NS_NET PRUint32 SchemeTypeFor(const char* i_scheme)
return nsIURI::MAILTO;
else if (0 == PL_strcasecmp("news", i_scheme))
return nsIURI::NEWS;
else if (0 == PL_strcasecmp("ldap", i_scheme))
return nsIURI::LDAP;
else
return nsIURI::UNKNOWN;
}