mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 21:25:35 +00:00
Adding ldap optimization cuz dmose wants it real bad. r=dmose
This commit is contained in:
parent
720374d8c3
commit
8eba084e89
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user