Index: content/common/webkitplatformsupport_impl.cc |
diff --git a/content/common/webkitplatformsupport_impl.cc b/content/common/webkitplatformsupport_impl.cc |
index 1af22f8a2b1d93b5ca27658675555659faf98a1e..1328bd5d1042f36f48ed6cb7cb0e78b684020829 100644 |
--- a/content/common/webkitplatformsupport_impl.cc |
+++ b/content/common/webkitplatformsupport_impl.cc |
@@ -9,6 +9,23 @@ |
#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" |
+ |
+namespace { |
+void RunWebAudioMediaCodec( |
+ base::SharedMemoryHandle encoded_data_handle, |
+ base::FileDescriptor pcm_output) { |
+ content::ChildThread::current()->Send( |
+ new ViewHostMsg_RunWebAudioMediaCodec(encoded_data_handle, |
+ pcm_output)); |
+} |
+ |
+} // anonymous namespace |
+#endif |
+ |
namespace content { |
WebKitPlatformSupportImpl::WebKitPlatformSupportImpl() { |
@@ -49,4 +66,11 @@ WebKitPlatformSupportImpl::CreateWebSocketBridge( |
return dispatcher->CreateBridge(handle, delegate); |
} |
+#if defined(OS_ANDROID) |
+webkit_media::WebAudioMediaCodecRunner |
+WebKitPlatformSupportImpl::GetWebAudioMediaCodecRunner() { |
+ return base::Bind(&RunWebAudioMediaCodec); |
+} |
+#endif |
+ |
} // namespace content |