text: // Copyright (c) 2012 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.
  
  #include "media/base/android/media_jni_registrar.h"
  
  #include "base/basictypes.h"
  #include "base/android/jni_android.h"
  #include "base/android/jni_registrar.h"
  
  #include "media/audio/android/audio_manager_android.h"
  #include "media/audio/android/audio_record_input.h"
  #include "media/base/android/media_codec_bridge.h"
  #include "media/base/android/media_drm_bridge.h"
  #include "media/base/android/media_player_bridge.h"
  #include "media/base/android/media_player_listener.h"
  #include "media/base/android/webaudio_media_codec_bridge.h"
  #include "media/video/capture/android/video_capture_device_android.h"
  
  namespace media {
  
  static base::android::RegistrationMethod kMediaRegisteredMethods[] = {
    { "AudioManagerAndroid",
      AudioManagerAndroid::RegisterAudioManager },
    { "AudioRecordInput",
      AudioRecordInputStream::RegisterAudioRecordInput },
    { "MediaCodecBridge",
      MediaCodecBridge::RegisterMediaCodecBridge },
    { "MediaDrmBridge",
      MediaDrmBridge::RegisterMediaDrmBridge },
    { "MediaPlayerBridge",
      MediaPlayerBridge::RegisterMediaPlayerBridge },
    { "MediaPlayerListener",
      MediaPlayerListener::RegisterMediaPlayerListener },
    { "VideoCaptureDevice",
      VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice },
    { "WebAudioMediaCodecBridge",
      WebAudioMediaCodecBridge::RegisterWebAudioMediaCodecBridge },
  };
  
  bool RegisterJni(JNIEnv* env) {
    return base::android::RegisterNativeMethods(
        env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods));
  }
  
  }  // namespace media
  