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