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

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

Issue 2199913003: media: Remove unneeded RegisterNatives() call (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: rebase Created 4 years, 4 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/base/android/media_codec_util.cc ('k') | media/base/android/sdk_media_codec_bridge.h » ('j') | 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/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
OLDNEW
« no previous file with comments | « media/base/android/media_codec_util.cc ('k') | media/base/android/sdk_media_codec_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698