Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: media/base/android/media_jni_registrar.cc

Issue 14265014: Refactor android specific code in AudioManagerBase class. (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: remove OVERRIDE for mac Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/audio/audio_manager_base.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/android/audio_manager_android.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/base/android/webaudio_media_codec_bridge.h"
15 #include "media/video/capture/android/video_capture_device_android.h" 15 #include "media/video/capture/android/video_capture_device_android.h"
16 16
17 namespace media { 17 namespace media {
18 18
19 static base::android::RegistrationMethod kMediaRegisteredMethods[] = { 19 static base::android::RegistrationMethod kMediaRegisteredMethods[] = {
20 { "AudioManagerBase", 20 { "AudioManagerAndroid",
21 AudioManagerBase::RegisterAudioManager }, 21 AudioManagerAndroid::RegisterAudioManager },
22 { "MediaPlayerBridge", 22 { "MediaPlayerBridge",
23 MediaPlayerBridge::RegisterMediaPlayerBridge }, 23 MediaPlayerBridge::RegisterMediaPlayerBridge },
24 { "MediaPlayerListener", 24 { "MediaPlayerListener",
25 MediaPlayerListener::RegisterMediaPlayerListener }, 25 MediaPlayerListener::RegisterMediaPlayerListener },
26 { "VideoCaptureDevice", 26 { "VideoCaptureDevice",
27 VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice }, 27 VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice },
28 { "WebAudioMediaCodecBridge", 28 { "WebAudioMediaCodecBridge",
29 WebAudioMediaCodecBridge::RegisterWebAudioMediaCodecBridge }, 29 WebAudioMediaCodecBridge::RegisterWebAudioMediaCodecBridge },
30 }; 30 };
31 31
32 bool RegisterJni(JNIEnv* env) { 32 bool RegisterJni(JNIEnv* env) {
33 return base::android::RegisterNativeMethods( 33 return base::android::RegisterNativeMethods(
34 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods)); 34 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods));
35 } 35 }
36 36
37 } // namespace media 37 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_manager_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698