From 874fe541ce554db2f5ebc0a2b857cd3d97945739 Mon Sep 17 00:00:00 2001 From: "mhm@chromium.org" Date: Sun, 1 Nov 2009 01:01:52 +0000 Subject: 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 --- webkit/glue/simple_webmimeregistry_impl.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'webkit/glue/simple_webmimeregistry_impl.cc') 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())) -- cgit v1.1