| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "content/common/child_thread.h" | 6 #include "content/common/child_thread.h" |
| 7 #include "content/common/socket_stream_dispatcher.h" | 7 #include "content/common/socket_stream_dispatcher.h" |
| 8 #include "content/common/webkitplatformsupport_impl.h" | 8 #include "content/common/webkitplatformsupport_impl.h" |
| 9 #include "content/public/common/content_client.h" | 9 #include "content/public/common/content_client.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| 11 | 11 |
| 12 #if defined(OS_ANDROID) | 12 #if defined(OS_ANDROID) |
| 13 #include "base/file_descriptor_posix.h" | 13 #include "base/file_descriptor_posix.h" |
| 14 #include "base/shared_memory.h" | 14 #include "base/shared_memory.h" |
| 15 #include "content/common/view_messages.h" | 15 #include "content/common/view_messages.h" |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 void RunWebAudioMediaCodec( | 18 void RunWebAudioMediaCodec( |
| 19 base::SharedMemoryHandle encoded_data_handle, | 19 base::SharedMemoryHandle encoded_data_handle, |
| 20 base::FileDescriptor pcm_output) { | 20 base::FileDescriptor pcm_output, |
| 21 size_t data_size) { |
| 21 content::ChildThread::current()->Send( | 22 content::ChildThread::current()->Send( |
| 22 new ViewHostMsg_RunWebAudioMediaCodec(encoded_data_handle, | 23 new ViewHostMsg_RunWebAudioMediaCodec(encoded_data_handle, |
| 23 pcm_output)); | 24 pcm_output, |
| 25 data_size)); |
| 24 } | 26 } |
| 25 | 27 |
| 26 } // anonymous namespace | 28 } // anonymous namespace |
| 27 #endif | 29 #endif |
| 28 | 30 |
| 29 namespace content { | 31 namespace content { |
| 30 | 32 |
| 31 WebKitPlatformSupportImpl::WebKitPlatformSupportImpl() { | 33 WebKitPlatformSupportImpl::WebKitPlatformSupportImpl() { |
| 32 } | 34 } |
| 33 | 35 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 } | 69 } |
| 68 | 70 |
| 69 #if defined(OS_ANDROID) | 71 #if defined(OS_ANDROID) |
| 70 webkit_media::WebAudioMediaCodecRunner | 72 webkit_media::WebAudioMediaCodecRunner |
| 71 WebKitPlatformSupportImpl::GetWebAudioMediaCodecRunner() { | 73 WebKitPlatformSupportImpl::GetWebAudioMediaCodecRunner() { |
| 72 return base::Bind(&RunWebAudioMediaCodec); | 74 return base::Bind(&RunWebAudioMediaCodec); |
| 73 } | 75 } |
| 74 #endif | 76 #endif |
| 75 | 77 |
| 76 } // namespace content | 78 } // namespace content |
| OLD | NEW |