summaryrefslogtreecommitdiffstats
path: root/content/renderer/media/android/audio_decoder_android.h
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-22 14:32:44 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-22 14:32:44 +0000
commitbe580998cfc2b326b55de2ddfe5e5b80f01c71c1 (patch)
tree67b82742711aed0d4f3f53e023cfbeee25f734c4 /content/renderer/media/android/audio_decoder_android.h
parent992559a386c5dcbcb36e4e10c9a80281b2948a3c (diff)
downloadchromium_src-be580998cfc2b326b55de2ddfe5e5b80f01c71c1.zip
chromium_src-be580998cfc2b326b55de2ddfe5e5b80f01c71c1.tar.gz
chromium_src-be580998cfc2b326b55de2ddfe5e5b80f01c71c1.tar.bz2
Move webkit/renderer/media/android/ to content/renderer/media/android/.
In addition: - MediaInfoLoader was moved to the android subdirectory as its only used on Android. - ProxyDecryptor was modified to accept a MediaKeys object instead of creating one itself. - StreamTexture{Factory,Proxy}Impl was folded into StreamTexture{Factory,Proxy}. - WebMediaPlayerProxyAndroidImpl was folded into WebMediaPlayerProxyAndroid. BUG=251306 TBR=jochen Review URL: https://chromiumcodereview.appspot.com/17502007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208040 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/media/android/audio_decoder_android.h')
-rw-r--r--content/renderer/media/android/audio_decoder_android.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/content/renderer/media/android/audio_decoder_android.h b/content/renderer/media/android/audio_decoder_android.h
new file mode 100644
index 0000000..8bf5aa0
--- /dev/null
+++ b/content/renderer/media/android/audio_decoder_android.h
@@ -0,0 +1,31 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_MEDIA_ANDROID_AUDIO_DECODER_ANDROID_H_
+#define CONTENT_RENDERER_MEDIA_ANDROID_AUDIO_DECODER_ANDROID_H_
+
+#include "base/basictypes.h"
+#include "base/callback_forward.h"
+#include "base/file_descriptor_posix.h"
+#include "base/shared_memory.h"
+
+namespace WebKit {
+class WebAudioBus;
+}
+
+namespace content {
+
+typedef base::Callback<
+ void(base::SharedMemoryHandle, base::FileDescriptor, size_t)>
+ WebAudioMediaCodecRunner;
+
+bool DecodeAudioFileData(WebKit::WebAudioBus* destination_bus,
+ const char* data,
+ size_t data_size,
+ double sample_rate,
+ const WebAudioMediaCodecRunner& runner);
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_MEDIA_ANDROID_AUDIO_DECODER_ANDROID_H_