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

Unified Diff: sky/engine/platform/MIMETypeRegistry.cpp

Issue 752463002: Remove unused WebMIMERegistry (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/platform/MIMETypeRegistry.h ('k') | sky/engine/platform/graphics/Image.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/MIMETypeRegistry.cpp
diff --git a/sky/engine/platform/MIMETypeRegistry.cpp b/sky/engine/platform/MIMETypeRegistry.cpp
index 49f5670bff6c342942b04e9300d3ee334a643aba..61059ef4676c90b6f461b26e62e811d979c47c7c 100644
--- a/sky/engine/platform/MIMETypeRegistry.cpp
+++ b/sky/engine/platform/MIMETypeRegistry.cpp
@@ -31,52 +31,10 @@
#include "sky/engine/config.h"
#include "sky/engine/platform/MIMETypeRegistry.h"
-#include "sky/engine/public/platform/Platform.h"
-#include "sky/engine/public/platform/WebMimeRegistry.h"
#include "sky/engine/wtf/text/CString.h"
namespace blink {
-String MIMETypeRegistry::getMIMETypeForExtension(const String &ext)
-{
- return blink::Platform::current()->mimeRegistry()->mimeTypeForExtension(ext);
-}
-
-String MIMETypeRegistry::getWellKnownMIMETypeForExtension(const String &ext)
-{
- // This method must be thread safe and should not consult the OS/registry.
- return blink::Platform::current()->mimeRegistry()->wellKnownMimeTypeForExtension(ext);
-}
-
-String MIMETypeRegistry::getMIMETypeForPath(const String& path)
-{
- int pos = path.reverseFind('.');
- if (pos < 0)
- return "application/octet-stream";
- String extension = path.substring(pos + 1);
- String mimeType = getMIMETypeForExtension(extension);
- if (mimeType.isEmpty())
- return "application/octet-stream";
- return mimeType;
-}
-
-bool MIMETypeRegistry::isSupportedImageMIMEType(const String& mimeType)
-{
- return blink::Platform::current()->mimeRegistry()->supportsImageMIMEType(mimeType.lower())
- != blink::WebMimeRegistry::IsNotSupported;
-}
-
-bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType)
-{
- return isSupportedImageMIMEType(mimeType);
-}
-
-bool MIMETypeRegistry::isSupportedImagePrefixedMIMEType(const String& mimeType)
-{
- return blink::Platform::current()->mimeRegistry()->supportsImagePrefixedMIMEType(mimeType.lower())
- != blink::WebMimeRegistry::IsNotSupported;
-}
-
bool MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(const String& mimeType)
{
if (equalIgnoringCase(mimeType, "image/jpeg") || equalIgnoringCase(mimeType, "image/png"))
@@ -86,16 +44,4 @@ bool MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(const String& mimeTyp
return false;
}
-bool MIMETypeRegistry::isSupportedJavaScriptMIMEType(const String& mimeType)
-{
- return blink::Platform::current()->mimeRegistry()->supportsJavaScriptMIMEType(mimeType.lower())
- != blink::WebMimeRegistry::IsNotSupported;
-}
-
-bool MIMETypeRegistry::isSupportedNonImageMIMEType(const String& mimeType)
-{
- return blink::Platform::current()->mimeRegistry()->supportsNonImageMIMEType(mimeType.lower())
- != blink::WebMimeRegistry::IsNotSupported;
-}
-
} // namespace blink
« no previous file with comments | « sky/engine/platform/MIMETypeRegistry.h ('k') | sky/engine/platform/graphics/Image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698