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 "media/base/android/media_jni_registrar.h" | 5 #include "media/base/android/media_jni_registrar.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/jni_registrar.h" | 9 #include "base/android/jni_registrar.h" |
10 | 10 |
11 #include "media/audio/audio_manager_base.h" | 11 #include "media/audio/audio_manager_base.h" |
12 #include "media/base/android/media_player_bridge.h" | 12 #include "media/base/android/media_player_bridge.h" |
13 #include "media/base/android/media_player_listener.h" | 13 #include "media/base/android/media_player_listener.h" |
| 14 #include "media/base/android/webaudio_media_codec_bridge.h" |
14 #include "media/video/capture/android/video_capture_device_android.h" | 15 #include "media/video/capture/android/video_capture_device_android.h" |
15 | 16 |
16 namespace media { | 17 namespace media { |
17 | 18 |
18 static base::android::RegistrationMethod kMediaRegisteredMethods[] = { | 19 static base::android::RegistrationMethod kMediaRegisteredMethods[] = { |
19 { "AudioManagerBase", | 20 { "AudioManagerBase", |
20 AudioManagerBase::RegisterAudioManager }, | 21 AudioManagerBase::RegisterAudioManager }, |
21 { "MediaPlayerBridge", | 22 { "MediaPlayerBridge", |
22 MediaPlayerBridge::RegisterMediaPlayerBridge }, | 23 MediaPlayerBridge::RegisterMediaPlayerBridge }, |
23 { "MediaPlayerListener", | 24 { "MediaPlayerListener", |
24 MediaPlayerListener::RegisterMediaPlayerListener }, | 25 MediaPlayerListener::RegisterMediaPlayerListener }, |
25 { "VideoCaptureDevice", | 26 { "VideoCaptureDevice", |
26 VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice }, | 27 VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice }, |
| 28 { "WebAudioMediaCodecBridge", |
| 29 WebAudioMediaCodecBridge::RegisterWebAudioMediaCodecBridge }, |
27 }; | 30 }; |
28 | 31 |
29 bool RegisterJni(JNIEnv* env) { | 32 bool RegisterJni(JNIEnv* env) { |
30 return base::android::RegisterNativeMethods( | 33 return base::android::RegisterNativeMethods( |
31 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods)); | 34 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods)); |
32 } | 35 } |
33 | 36 |
34 } // namespace media | 37 } // namespace media |
OLD | NEW |