Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1129)

Unified Diff: content/common/webkitplatformsupport_impl.cc

Issue 12457043: Android implementation of WebAudio audio file decoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698