Lines Matching refs:mimeType
67 String mimeType = type.substring(0, static_cast<unsigned>(type.find(';')));
82 String mimeType = getMIMETypeForExtension(extension);
83 if (mimeType.isEmpty()) {
86 mimeType = getPluginMimeTypeFromExtension(extension);
88 if (mimeType.isEmpty())
90 return mimeType;
93 bool MIMETypeRegistry::isSupportedImageMIMEType(const String& mimeType)
95 return PlatformBridge::isSupportedImageMIMEType(mimeType);
98 bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType)
100 return isSupportedImageMIMEType(mimeType);
103 bool MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(const String& mimeType)
105 return mimeType == "image/jpeg" || mimeType == "image/png";
108 bool MIMETypeRegistry::isSupportedJavaScriptMIMEType(const String& mimeType)
110 return PlatformBridge::isSupportedJavaScriptMIMEType(mimeType);
113 bool MIMETypeRegistry::isSupportedNonImageMIMEType(const String& mimeType)
115 return PlatformBridge::isSupportedNonImageMIMEType(mimeType);
118 bool MIMETypeRegistry::isSupportedMediaMIMEType(const String& mimeType)
124 return !mimeType.isEmpty() && supportedMediaMIMETypes.contains(mimeType);
127 bool MIMETypeRegistry::isJavaAppletMIMEType(const String& mimeType)
133 return mimeType.startsWith("application/x-java-applet", false)
134 || mimeType.startsWith("application/x-java-bean", false)
135 || mimeType.startsWith("application/x-java-vm", false);