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/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_registrar.h" | 8 #include "base/android/jni_registrar.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 | 10 |
11 #include "media/audio/android/audio_manager_android.h" | 11 #include "media/audio/android/audio_manager_android.h" |
12 #include "media/audio/android/audio_record_input.h" | 12 #include "media/audio/android/audio_record_input.h" |
13 #include "media/base/android/media_codec_util.h" | |
14 #include "media/base/android/media_drm_bridge.h" | 13 #include "media/base/android/media_drm_bridge.h" |
15 #include "media/base/android/media_player_bridge.h" | 14 #include "media/base/android/media_player_bridge.h" |
16 #include "media/base/android/media_player_listener.h" | 15 #include "media/base/android/media_player_listener.h" |
17 #include "media/base/android/sdk_media_codec_bridge.h" | |
18 | 16 |
19 namespace media { | 17 namespace media { |
20 | 18 |
21 static base::android::RegistrationMethod kMediaRegisteredMethods[] = { | 19 static base::android::RegistrationMethod kMediaRegisteredMethods[] = { |
22 {"AudioManagerAndroid", AudioManagerAndroid::RegisterAudioManager}, | 20 {"AudioManagerAndroid", AudioManagerAndroid::RegisterAudioManager}, |
23 {"AudioRecordInput", AudioRecordInputStream::RegisterAudioRecordInput}, | 21 {"AudioRecordInput", AudioRecordInputStream::RegisterAudioRecordInput}, |
24 {"MediaDrmBridge", MediaDrmBridge::RegisterMediaDrmBridge}, | 22 {"MediaDrmBridge", MediaDrmBridge::RegisterMediaDrmBridge}, |
25 {"MediaPlayerBridge", MediaPlayerBridge::RegisterMediaPlayerBridge}, | 23 {"MediaPlayerBridge", MediaPlayerBridge::RegisterMediaPlayerBridge}, |
26 {"MediaPlayerListener", MediaPlayerListener::RegisterMediaPlayerListener}, | 24 {"MediaPlayerListener", MediaPlayerListener::RegisterMediaPlayerListener}, |
27 {"SdkMediaCodecBridge", SdkMediaCodecBridge::RegisterSdkMediaCodecBridge}, | |
28 {"MediaCodecUtil", MediaCodecUtil::RegisterMediaCodecUtil}, | |
29 }; | 25 }; |
30 | 26 |
31 bool RegisterJni(JNIEnv* env) { | 27 bool RegisterJni(JNIEnv* env) { |
32 return base::android::RegisterNativeMethods( | 28 return base::android::RegisterNativeMethods( |
33 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods)); | 29 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods)); |
34 } | 30 } |
35 | 31 |
36 } // namespace media | 32 } // namespace media |
OLD | NEW |