diff options
Diffstat (limited to 'Source/WebCore/platform/MIMETypeRegistry.h')
-rw-r--r-- | Source/WebCore/platform/MIMETypeRegistry.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/WebCore/platform/MIMETypeRegistry.h b/Source/WebCore/platform/MIMETypeRegistry.h index d069035..19d1b4b 100644 --- a/Source/WebCore/platform/MIMETypeRegistry.h +++ b/Source/WebCore/platform/MIMETypeRegistry.h @@ -68,6 +68,10 @@ public: // Check to see if a mime type is suitable for being loaded using <video> and <audio> static bool isSupportedMediaMIMEType(const String& mimeType); + // Check to see if the mime type is not suitable for being loaded as a text + // document in a frame. Only valid for mime types begining with "text/". + static bool isUnsupportedTextMIMEType(const String& mimeType); + // Check to see if a mime type is a valid Java applet mime type static bool isJavaAppletMIMEType(const String& mimeType); @@ -80,6 +84,7 @@ public: static HashSet<String>& getSupportedImageMIMETypesForEncoding(); static HashSet<String>& getSupportedNonImageMIMETypes(); static HashSet<String>& getSupportedMediaMIMETypes(); + static HashSet<String>& getUnsupportedTextMIMETypes(); }; const String& defaultMIMEType(); |