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

Unified Diff: webkit/port/platform/MIMETypeRegistry.cpp

Issue 12004: Remove dependencies on base/ from MIMETypeRegistry.cpp (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 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 | « webkit/glue/chromium_bridge_impl.cc ('k') | webkit/port/platform/chromium/ChromiumBridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « webkit/glue/chromium_bridge_impl.cc ('k') | webkit/port/platform/chromium/ChromiumBridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698