| Index: webkit/port/platform/MIMETypeRegistry.cpp
|
| ===================================================================
|
| --- webkit/port/platform/MIMETypeRegistry.cpp (revision 6033)
|
| +++ webkit/port/platform/MIMETypeRegistry.cpp (working copy)
|
| @@ -24,6 +24,7 @@
|
| */
|
|
|
| #include "config.h"
|
| +#include "ChromiumBridge.h"
|
| #include "CString.h"
|
| #include "MIMETypeRegistry.h"
|
| #include "MediaPlayer.h"
|
| @@ -31,8 +32,6 @@
|
| #include <wtf/HashMap.h>
|
| #include <wtf/HashSet.h>
|
|
|
| -#include "net/base/mime_util.h"
|
| -
|
| namespace WebCore
|
| {
|
|
|
| @@ -74,7 +73,7 @@
|
| bool MIMETypeRegistry::isSupportedImageMIMEType(const String& mimeType)
|
| {
|
| return !mimeType.isEmpty()
|
| - && net::IsSupportedImageMimeType(mimeType.latin1().data());
|
| + && ChromiumBridge::isSupportedImageMIMEType(mimeType.latin1().data());
|
| }
|
|
|
| bool MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(const String& mimeType)
|
| @@ -85,8 +84,9 @@
|
|
|
| bool MIMETypeRegistry::isSupportedJavaScriptMIMEType(const String& mimeType)
|
| {
|
| + const char* data = mimeType.latin1().data();
|
| return !mimeType.isEmpty()
|
| - && net::IsSupportedJavascriptMimeType(mimeType.latin1().data());
|
| + && ChromiumBridge::isSupportedJavascriptMIMEType(data);
|
| }
|
|
|
| bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType)
|
| @@ -97,7 +97,7 @@
|
| bool MIMETypeRegistry::isSupportedNonImageMIMEType(const String& mimeType)
|
| {
|
| return !mimeType.isEmpty()
|
| - && net::IsSupportedNonImageMimeType(mimeType.latin1().data());
|
| + && ChromiumBridge::isSupportedNonImageMIMEType(mimeType.latin1().data());
|
| }
|
|
|
| #if ENABLE(VIDEO)
|
|
|