Chromium Code Reviews| Index: content/common/webkitplatformsupport_impl.cc |
| diff --git a/content/common/webkitplatformsupport_impl.cc b/content/common/webkitplatformsupport_impl.cc |
| index 1af22f8a2b1d93b5ca27658675555659faf98a1e..96959227bc71335ecb0a61b73a38aefe6ad43567 100644 |
| --- a/content/common/webkitplatformsupport_impl.cc |
| +++ b/content/common/webkitplatformsupport_impl.cc |
| @@ -9,6 +9,12 @@ |
| #include "content/public/common/content_client.h" |
| #include "googleurl/src/gurl.h" |
| +#if defined(OS_ANDROID) |
| +#include "base/file_descriptor_posix.h" |
| +#include "base/shared_memory.h" |
| +#include "content/common/view_messages.h" |
| +#endif |
| + |
| namespace content { |
| WebKitPlatformSupportImpl::WebKitPlatformSupportImpl() { |
| @@ -49,4 +55,19 @@ WebKitPlatformSupportImpl::CreateWebSocketBridge( |
| return dispatcher->CreateBridge(handle, delegate); |
| } |
| +#if defined(OS_ANDROID) |
| +webkit_media::WebAudioMediaCodecRunner |
| +WebKitPlatformSupportImpl::GetWebAudioMediaCodecRunner() { |
| + return base::Bind(&WebKitPlatformSupportImpl::RunWebAudioMediaCodec); |
|
bulach
2013/03/28 13:39:25
nit: unindent
|
| +} |
| + |
| +/*static*/ |
| +void WebKitPlatformSupportImpl::RunWebAudioMediaCodec( |
| + base::SharedMemoryHandle encoded_data_handle, |
| + base::FileDescriptor pcm_output) { |
| + content::ChildThread::current()->Send( |
| + new ViewHostMsg_WebAudioMediaCodec(encoded_data_handle, |
| + pcm_output)); |
| +} |
| +#endif |
| } // namespace content |