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

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

Issue 1917023003: ScreenCapture for Android phase1, part I (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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" 13 #include "media/base/android/media_codec_util.h"
14 #include "media/base/android/media_drm_bridge.h" 14 #include "media/base/android/media_drm_bridge.h"
15 #include "media/base/android/media_player_bridge.h" 15 #include "media/base/android/media_player_bridge.h"
16 #include "media/base/android/media_player_listener.h" 16 #include "media/base/android/media_player_listener.h"
17 #include "media/base/android/sdk_media_codec_bridge.h" 17 #include "media/base/android/sdk_media_codec_bridge.h"
18 #include "media/capture/content/android/screen_capture_factory_android.h"
19 #include "media/capture/content/android/screen_capture_machine_android.h"
18 20
19 namespace media { 21 namespace media {
20 22
21 static base::android::RegistrationMethod kMediaRegisteredMethods[] = { 23 static base::android::RegistrationMethod kMediaRegisteredMethods[] = {
22 {"AudioManagerAndroid", AudioManagerAndroid::RegisterAudioManager}, 24 {"AudioManagerAndroid", AudioManagerAndroid::RegisterAudioManager},
23 {"AudioRecordInput", AudioRecordInputStream::RegisterAudioRecordInput}, 25 {"AudioRecordInput", AudioRecordInputStream::RegisterAudioRecordInput},
24 {"MediaDrmBridge", MediaDrmBridge::RegisterMediaDrmBridge}, 26 {"MediaDrmBridge", MediaDrmBridge::RegisterMediaDrmBridge},
25 {"MediaPlayerBridge", MediaPlayerBridge::RegisterMediaPlayerBridge}, 27 {"MediaPlayerBridge", MediaPlayerBridge::RegisterMediaPlayerBridge},
26 {"MediaPlayerListener", MediaPlayerListener::RegisterMediaPlayerListener}, 28 {"MediaPlayerListener", MediaPlayerListener::RegisterMediaPlayerListener},
27 {"SdkMediaCodecBridge", SdkMediaCodecBridge::RegisterSdkMediaCodecBridge}, 29 {"SdkMediaCodecBridge", SdkMediaCodecBridge::RegisterSdkMediaCodecBridge},
28 {"MediaCodecUtil", MediaCodecUtil::RegisterMediaCodecUtil}, 30 {"MediaCodecUtil", MediaCodecUtil::RegisterMediaCodecUtil},
31 {"ScreenCaptureFactory",
32 ScreenCaptureFactoryAndroid::RegisterScreenCaptureFactory},
33 {"ScreenCaptureMachine",
34 ScreenCaptureMachineAndroid::RegisterScreenCaptureMachine},
mcasas 2016/04/27 01:19:27 There is no capture in this registrar anymore, nor
braveyao 2016/05/04 18:49:40 Isn't Audio capture also a capture? It seems like
mcasas 2016/05/04 19:56:48 Flip the question: is Screen Capture more a Video
29 }; 35 };
30 36
31 bool RegisterJni(JNIEnv* env) { 37 bool RegisterJni(JNIEnv* env) {
32 return base::android::RegisterNativeMethods( 38 return base::android::RegisterNativeMethods(
33 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods)); 39 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods));
34 } 40 }
35 41
36 } // namespace media 42 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698