Bug 1637452: Part 11 - Fix JNI includes in dom/media; r=jya

In this bug we're moving away from monolithic JNI headers to class-specific
headers so that we don't have to rebuild the world every time we make a change
to a JNI interface.

Differential Revision: https://phabricator.services.mozilla.com/D75374
This commit is contained in:
Aaron Klotz 2020-05-15 17:05:12 +00:00
parent be11f78f6a
commit 0894f56add
15 changed files with 26 additions and 14 deletions

View File

@ -30,7 +30,7 @@
#include <algorithm>
#include <stdint.h>
#ifdef MOZ_WIDGET_ANDROID
# include "GeneratedJNIWrappers.h"
# include "mozilla/java/GeckoAppShellWrappers.h"
#endif
#ifdef XP_WIN
# include "mozilla/mscom/EnsureMTA.h"

View File

@ -33,7 +33,7 @@
#endif
#ifdef MOZ_WIDGET_ANDROID
# include "AndroidDecoderModule.h"
# include "GeneratedJNIWrappers.h"
# include "mozilla/java/MediaDrmProxyWrappers.h"
#endif
namespace mozilla {

View File

@ -9,7 +9,6 @@
#include <jni.h>
#include "mozilla/jni/Types.h"
#include "GeneratedJNINatives.h"
#include "mozilla/CDMProxy.h"
#include "mozilla/CDMCaps.h"
#include "mozilla/dom/MediaKeys.h"

View File

@ -6,7 +6,8 @@
#include "MediaDrmProxySupport.h"
#include "mozilla/EMEUtils.h"
#include "GeneratedJNINatives.h"
#include "mozilla/java/MediaDrmProxyNatives.h"
#include "mozilla/java/SessionKeyInfoWrappers.h"
#include "MediaCodec.h" // For MediaDrm::KeyStatus
namespace mozilla {

View File

@ -8,8 +8,8 @@
#define MediaDrmProxySupport_H
#include "mozilla/DecryptorProxyCallback.h"
#include "mozilla/java/MediaDrmProxyWrappers.h"
#include "mozilla/Logging.h"
#include "GeneratedJNIWrappers.h"
#include "nsString.h"
namespace mozilla {

View File

@ -33,6 +33,10 @@
#ifdef XP_WIN
# include "WMFDecoderModule.h"
#endif
#if defined(MOZ_WIDGET_ANDROID)
# include "mozilla/java/GeckoProcessManagerWrappers.h"
# include "mozilla/java/GeckoProcessTypeWrappers.h"
#endif // defined(MOZ_WIDGET_ANDROID)
using mozilla::ipc::GeckoChildProcessHost;

View File

@ -7,14 +7,13 @@
#include "HLSDecoder.h"
#include "AndroidBridge.h"
#include "DecoderTraits.h"
#include "GeneratedJNINatives.h"
#include "GeneratedJNIWrappers.h"
#include "HLSDemuxer.h"
#include "HLSUtils.h"
#include "MediaContainerType.h"
#include "MediaDecoderStateMachine.h"
#include "MediaFormatReader.h"
#include "MediaShutdownManager.h"
#include "mozilla/java/GeckoHLSResourceWrapperNatives.h"
#include "nsContentUtils.h"
#include "nsNetUtil.h"
#include "nsThreadUtils.h"

View File

@ -8,7 +8,7 @@
#define HLSDecoder_h_
#include "MediaDecoder.h"
#include "GeneratedJNIWrappers.h"
#include "mozilla/java/GeckoHLSResourceWrapperWrappers.h"
namespace mozilla {

View File

@ -12,6 +12,9 @@
#include "HLSUtils.h"
#include "MediaCodec.h"
#include "mozilla/java/GeckoAudioInfoWrappers.h"
#include "mozilla/java/GeckoHLSDemuxerWrapperNatives.h"
#include "mozilla/java/GeckoVideoInfoWrappers.h"
#include "mozilla/Unused.h"
#include "nsPrintfCString.h"

View File

@ -7,12 +7,12 @@
#if !defined(HLSDemuxer_h_)
# define HLSDemuxer_h_
# include "GeneratedJNINatives.h"
# include "GeneratedJNIWrappers.h"
# include "MediaCodec.h"
# include "MediaDataDemuxer.h"
# include "MediaDecoder.h"
# include "mozilla/Atomics.h"
# include "mozilla/java/GeckoHLSDemuxerWrapperWrappers.h"
# include "mozilla/java/GeckoHLSSampleWrappers.h"
# include "mozilla/Maybe.h"
# include "mozilla/Mutex.h"
# include "mozilla/TaskQueue.h"

View File

@ -9,7 +9,6 @@
#include "PlatformEncoderModule.h"
#include "TimeUnits.h"
#include "GeneratedJNIWrappers.h"
#include "JavaCallbacksSupport.h"
#include "mozilla/Maybe.h"

View File

@ -5,9 +5,11 @@
#ifndef JavaCallbacksSupport_h_
#define JavaCallbacksSupport_h_
#include "GeneratedJNINatives.h"
#include "MediaResult.h"
#include "MediaCodec.h"
#include "mozilla/java/CodecProxyNatives.h"
#include "mozilla/java/SampleBufferWrappers.h"
#include "mozilla/java/SampleWrappers.h"
namespace mozilla {

View File

@ -11,6 +11,11 @@
#include "JavaCallbacksSupport.h"
#include "MediaData.h"
#include "MediaInfo.h"
#include "mozilla/java/CodecProxyWrappers.h"
#include "mozilla/java/GeckoSurfaceWrappers.h"
#include "mozilla/java/SampleWrappers.h"
#include "mozilla/java/SampleBufferWrappers.h"
#include "mozilla/java/SurfaceAllocatorWrappers.h"
#include "SimpleMap.h"
#include "VideoUtils.h"
#include "VPXDecoder.h"

View File

@ -6,9 +6,9 @@
#define RemoteDataDecoder_h_
#include "AndroidDecoderModule.h"
#include "GeneratedJNIWrappers.h"
#include "SurfaceTexture.h"
#include "TimeUnits.h"
#include "mozilla/java/CodecProxyWrappers.h"
#include "mozilla/Maybe.h"
#include "mozilla/Monitor.h"

View File

@ -7,8 +7,8 @@
#ifndef mozilla_dom_SpeechSynthesisService_h
#define mozilla_dom_SpeechSynthesisService_h
#include "GeneratedJNINatives.h"
#include "nsISpeechService.h"
#include "mozilla/java/SpeechSynthesisServiceNatives.h"
#include "mozilla/StaticPtr.h"
namespace mozilla {