summaryrefslogtreecommitdiffstats
path: root/webkit/glue/simple_webmimeregistry_impl.cc
diff options
context:
space:
mode:
authormhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-01 01:01:52 +0000
committermhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-01 01:01:52 +0000
commit874fe541ce554db2f5ebc0a2b857cd3d97945739 (patch)
tree0933ca343f866f437abf6fdfda7c36714dc6c729 /webkit/glue/simple_webmimeregistry_impl.cc
parent5b4534e91b0e607f45dd6ee211af78dda354e26d (diff)
downloadchromium_src-874fe541ce554db2f5ebc0a2b857cd3d97945739.zip
chromium_src-874fe541ce554db2f5ebc0a2b857cd3d97945739.tar.gz
chromium_src-874fe541ce554db2f5ebc0a2b857cd3d97945739.tar.bz2
Eliminate mime_util dependency from WebFrameLoaderClient.
BUG=24604 TEST=None Review URL: http://codereview.chromium.org/344018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/simple_webmimeregistry_impl.cc')
-rw-r--r--webkit/glue/simple_webmimeregistry_impl.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/glue/simple_webmimeregistry_impl.cc b/webkit/glue/simple_webmimeregistry_impl.cc
index a2b792d..2857002 100644
--- a/webkit/glue/simple_webmimeregistry_impl.cc
+++ b/webkit/glue/simple_webmimeregistry_impl.cc
@@ -28,6 +28,13 @@ std::string AsASCII(const WebString& string) {
namespace webkit_glue {
+WebMimeRegistry::SupportsType SimpleWebMimeRegistryImpl::supportsMIMEType(
+ const WebString& mime_type) {
+ if (!net::IsSupportedMimeType(AsASCII(mime_type).c_str()))
+ return WebMimeRegistry::IsNotSupported;
+ return WebMimeRegistry::IsSupported;
+}
+
WebMimeRegistry::SupportsType SimpleWebMimeRegistryImpl::supportsImageMIMEType(
const WebString& mime_type) {
if (!net::IsSupportedImageMimeType(AsASCII(mime_type).c_str()))