diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-29 20:34:16 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-29 20:34:16 +0000 |
commit | 4a93d168ac89970e222a548f512cd70a54b12901 (patch) | |
tree | 36e82b6c1382e8a376afa88975ec27f31c502c0e /webkit/glue/simple_webmimeregistry_impl.cc | |
parent | 28f9033b54cd783536fd7cc84d6f0ef536dc5105 (diff) | |
download | chromium_src-4a93d168ac89970e222a548f512cd70a54b12901.zip chromium_src-4a93d168ac89970e222a548f512cd70a54b12901.tar.gz chromium_src-4a93d168ac89970e222a548f512cd70a54b12901.tar.bz2 |
Handle mimetype queries for media files
Added code path from WebKit to net::mimt_util to query
supported mime-types for media files.
BUG=12777
Review URL: http://codereview.chromium.org/114060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17225 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/simple_webmimeregistry_impl.cc')
-rw-r--r-- | webkit/glue/simple_webmimeregistry_impl.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/glue/simple_webmimeregistry_impl.cc b/webkit/glue/simple_webmimeregistry_impl.cc index d678c1b..95c39a1 100644 --- a/webkit/glue/simple_webmimeregistry_impl.cc +++ b/webkit/glue/simple_webmimeregistry_impl.cc @@ -25,6 +25,11 @@ bool SimpleWebMimeRegistryImpl::supportsJavaScriptMIMEType( return net::IsSupportedJavascriptMimeType(UTF16ToASCII(mime_type).c_str()); } +bool SimpleWebMimeRegistryImpl::supportsMediaMIMEType( + const WebString& mime_type) { + return net::IsSupportedMediaMimeType(UTF16ToASCII(mime_type).c_str()); +} + bool SimpleWebMimeRegistryImpl::supportsNonImageMIMEType( const WebString& mime_type) { return net::IsSupportedNonImageMimeType(UTF16ToASCII(mime_type).c_str()); |