Home | History | Annotate | Download | only in platform

Lines Matching refs:mimeType

59     String mimeType = getMIMETypeForExtension(extension);
60 if (mimeType.isEmpty()) {
61 // If there's no mimetype registered for the extension, check to see
63 mimeType = getPluginMimeTypeFromExtension(extension);
65 if (mimeType.isEmpty())
67 return mimeType;
70 bool MIMETypeRegistry::isSupportedImageMIMEType(const String& mimeType)
72 return blink::Platform::current()->mimeRegistry()->supportsImageMIMEType(mimeType.lower())
76 bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType)
78 return isSupportedImageMIMEType(mimeType);
81 bool MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(const String& mimeType)
83 if (equalIgnoringCase(mimeType, "image/jpeg") || equalIgnoringCase(mimeType, "image/png"))
85 if (equalIgnoringCase(mimeType, "image/webp"))
90 bool MIMETypeRegistry::isSupportedJavaScriptMIMEType(const String& mimeType)
92 return blink::Platform::current()->mimeRegistry()->supportsJavaScriptMIMEType(mimeType.lower())
96 bool MIMETypeRegistry::isSupportedNonImageMIMEType(const String& mimeType)
98 return blink::Platform::current()->mimeRegistry()->supportsNonImageMIMEType(mimeType.lower())
102 bool MIMETypeRegistry::isSupportedMediaSourceMIMEType(const String& mimeType, const String& codecs)
104 return !mimeType.isEmpty()
105 && blink::Platform::current()->mimeRegistry()->supportsMediaSourceMIMEType(mimeType.lower(), codecs);
108 bool MIMETypeRegistry::isSupportedEncryptedMediaMIMEType(const String& keySystem, const String& mimeType, const String& codecs)
111 return blink::Platform::current()->mimeRegistry()->supportsEncryptedMediaMIMEType(keySystem, mimeType.lower(), codecs);
114 bool MIMETypeRegistry::isJavaAppletMIMEType(const String& mimeType)
120 return mimeType.startsWith("application/x-java-applet", false)
121 || mimeType.startsWith("application/x-java-bean", false)
122 || mimeType.startsWith("application/x-java-vm", false);