summaryrefslogtreecommitdiffstats
path: root/webkit/glue/simple_webmimeregistry_impl.cc
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 04:43:51 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 04:43:51 +0000
commit1111563020b92fc9f6943e0b5c00f66de2f57082 (patch)
treebe1587a835de84b5164658af971c1b626bf9b2f2 /webkit/glue/simple_webmimeregistry_impl.cc
parent83a0cbe4af4408d7708bf54750aff66da80f3130 (diff)
downloadchromium_src-1111563020b92fc9f6943e0b5c00f66de2f57082.zip
chromium_src-1111563020b92fc9f6943e0b5c00f66de2f57082.tar.gz
chromium_src-1111563020b92fc9f6943e0b5c00f66de2f57082.tar.bz2
Eliminate mime_util dependency in FrameLoaderClientImpl.
This is a revision of http://codereview.chromium.org/344018 that adds an implementation of WebMimeRegistry for the worker process. We need this to support the dummy WebView created for workers. R=jam BUG=24604 TEST=covered by worker ui tests Review URL: http://codereview.chromium.org/342104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30941 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()))