String MIMETypeRegistry::getNormalizedMIMEType(const String& mimeType) { auto it = mimeTypeAssociationMap().find(mimeType); if (it != mimeTypeAssociationMap().end()) return it->value; return mimeType; }
WebString WebSettings::getNormalizedMIMEType(const WebString& type) { MIMETypeAssociationMap::const_iterator i = mimeTypeAssociationMap().find(type); return i == mimeTypeAssociationMap().end() ? type : i->second; }