summaryrefslogtreecommitdiffstats
path: root/webkit/glue/chromium_bridge_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/chromium_bridge_impl.cc')
-rw-r--r--webkit/glue/chromium_bridge_impl.cc51
1 files changed, 0 insertions, 51 deletions
diff --git a/webkit/glue/chromium_bridge_impl.cc b/webkit/glue/chromium_bridge_impl.cc
index aeb5f40..4fb80c4 100644
--- a/webkit/glue/chromium_bridge_impl.cc
+++ b/webkit/glue/chromium_bridge_impl.cc
@@ -34,7 +34,6 @@
#include "base/trace_event.h"
#include "build/build_config.h"
#include "googleurl/src/url_util.h"
-#include "net/base/mime_util.h"
#include "skia/ext/skia_utils_win.h"
#if USE(V8)
#include <v8.h>
@@ -142,56 +141,6 @@ bool ChromiumBridge::layoutTestMode() {
return webkit_glue::IsLayoutTestMode();
}
-// MimeType -------------------------------------------------------------------
-
-bool ChromiumBridge::isSupportedImageMIMEType(const char* mime_type) {
- return net::IsSupportedImageMimeType(mime_type);
-}
-
-bool ChromiumBridge::isSupportedJavascriptMIMEType(const char* mime_type) {
- return net::IsSupportedJavascriptMimeType(mime_type);
-}
-
-bool ChromiumBridge::isSupportedNonImageMIMEType(const char* mime_type) {
- return net::IsSupportedNonImageMimeType(mime_type);
-}
-
-bool ChromiumBridge::matchesMIMEType(const String& pattern,
- const String& type) {
- return net::MatchesMimeType(webkit_glue::StringToStdString(pattern),
- webkit_glue::StringToStdString(type));
-}
-
-String ChromiumBridge::mimeTypeForExtension(const String& ext) {
- if (ext.isEmpty())
- return String();
-
- std::string type;
- webkit_glue::GetMimeTypeFromExtension(
- webkit_glue::StringToFilePathString(ext), &type);
- return webkit_glue::StdStringToString(type);
-}
-
-String ChromiumBridge::mimeTypeFromFile(const String& file_path) {
- if (file_path.isEmpty())
- return String();
-
- std::string type;
- webkit_glue::GetMimeTypeFromFile(
- FilePath(webkit_glue::StringToFilePathString(file_path)), &type);
- return webkit_glue::StdStringToString(type);
-}
-
-String ChromiumBridge::preferredExtensionForMIMEType(const String& mime_type) {
- if (mime_type.isEmpty())
- return String();
-
- FilePath::StringType stdext;
- webkit_glue::GetPreferredExtensionForMimeType(
- webkit_glue::StringToStdString(mime_type), &stdext);
- return webkit_glue::FilePathStringToString(stdext);
-}
-
// Plugin ---------------------------------------------------------------------
bool ChromiumBridge::plugins(bool refresh, Vector<PluginInfo*>* results) {