Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(704)

Unified Diff: Source/core/platform/MIMETypeRegistry.h

Issue 21929002: Remove unused, unimplemented and no-op methods from MIMETypeRegistry. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/MIMETypeRegistry.h
diff --git a/Source/core/platform/MIMETypeRegistry.h b/Source/core/platform/MIMETypeRegistry.h
index e16fbadf57bb59023915f0f050769167103d894f..9062e26f6893a582d0a6caf5ed3926c7c4ce63c5 100644
--- a/Source/core/platform/MIMETypeRegistry.h
+++ b/Source/core/platform/MIMETypeRegistry.h
@@ -38,10 +38,7 @@ public:
static String getMIMETypeForExtension(const String& extension);
static String getWellKnownMIMETypeForExtension(const String& extension);
- static Vector<String> getExtensionsForMIMEType(const String& type);
static String getPreferredExtensionForMIMEType(const String& type);
- static String getMediaMIMETypeForExtension(const String& extension);
- static Vector<String> getMediaMIMETypesForExtension(const String& extension);
static String getMIMETypeForPath(const String& path);
@@ -67,34 +64,10 @@ public:
// Check to see if the mime type and codecs are supported by the MediaSource implementation.
static bool isSupportedMediaSourceMIMEType(const String& mimeType, const String& codecs);
- // 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);
-
- // Check to see if a mime type is a plugin implemented by the
- // browser (e.g. a Qt Plugin).
- static bool isApplicationPluginMIMEType(const String& mimeType);
-
- // Check to see if a mime type is suitable for being shown inside a page.
- // Returns true if any of isSupportedImageMIMEType(), isSupportedNonImageMIMEType(), isSupportedMediaMIMEType() returns true
- // or if given mime type begins with "text/" and isUnsupportedTextMIMEType() returns false.
- static bool canShowMIMEType(const String& mimeType);
-
- static HashSet<String>& getSupportedImageMIMETypes();
- static HashSet<String>& getSupportedImageResourceMIMETypes();
- static HashSet<String>& getSupportedImageMIMETypesForEncoding();
- static HashSet<String>& getSupportedNonImageMIMETypes();
- static HashSet<String>& getSupportedMediaMIMETypes();
- static HashSet<String>& getUnsupportedTextMIMETypes();
-
- static String getNormalizedMIMEType(const String&);
};
-const String& defaultMIMEType();
-
} // namespace WebCore
#endif // MIMETypeRegistry_h
« no previous file with comments | « Source/core/html/HTMLPlugInImageElement.cpp ('k') | Source/core/platform/chromium/MIMETypeRegistryChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698