Only include those parts of AVFoundation.framework which are strictly needed.
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Dec 2016 20:31:55 +0000 (20:31 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Dec 2016 20:31:55 +0000 (20:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=166423

Reviewed by Eric Carlson.

* Modules/plugins/QuickTimePluginReplacement.mm:
* platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:
* platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm:
* platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
* platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm:
* platform/mac/SerializedPlatformRepresentationMac.mm:
* platform/mac/WebPlaybackSessionInterfaceMac.mm:
* platform/mac/WebVideoFullscreenController.mm:
* platform/mediastream/mac/AVAudioCaptureSource.mm:
* platform/mediastream/mac/AVCaptureDeviceManager.mm:
* platform/mediastream/mac/AVMediaCaptureSource.mm:
* platform/mediastream/mac/AVVideoCaptureSource.mm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210105 268f45cc-cd09-0410-ab3c-d52691b4dbfc

14 files changed:
Source/WebCore/ChangeLog
Source/WebCore/Modules/plugins/QuickTimePluginReplacement.mm
Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm
Source/WebCore/platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm
Source/WebCore/platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
Source/WebCore/platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm
Source/WebCore/platform/mac/SerializedPlatformRepresentationMac.mm
Source/WebCore/platform/mac/WebPlaybackSessionInterfaceMac.mm
Source/WebCore/platform/mac/WebVideoFullscreenController.mm
Source/WebCore/platform/mediastream/mac/AVAudioCaptureSource.mm
Source/WebCore/platform/mediastream/mac/AVCaptureDeviceManager.mm
Source/WebCore/platform/mediastream/mac/AVMediaCaptureSource.mm
Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm

index 35c6542..aa44642 100644 (file)
@@ -1,5 +1,26 @@
 2016-12-22  Jer Noble  <jer.noble@apple.com>
 
+        Only include those parts of AVFoundation.framework which are strictly needed.
+        https://bugs.webkit.org/show_bug.cgi?id=166423
+
+        Reviewed by Eric Carlson.
+
+        * Modules/plugins/QuickTimePluginReplacement.mm:
+        * platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:
+        * platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm:
+        * platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm:
+        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+        * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm:
+        * platform/mac/SerializedPlatformRepresentationMac.mm:
+        * platform/mac/WebPlaybackSessionInterfaceMac.mm:
+        * platform/mac/WebVideoFullscreenController.mm:
+        * platform/mediastream/mac/AVAudioCaptureSource.mm:
+        * platform/mediastream/mac/AVCaptureDeviceManager.mm:
+        * platform/mediastream/mac/AVMediaCaptureSource.mm:
+        * platform/mediastream/mac/AVVideoCaptureSource.mm:
+
+2016-12-22  Jer Noble  <jer.noble@apple.com>
+
         NULL-deref CRASH in WebCore::PlatformMediaSession::mediaType
         https://bugs.webkit.org/show_bug.cgi?id=166407
 
index 3ad4748..855550c 100644 (file)
 #import "ScriptSourceCode.h"
 #import "Settings.h"
 #import "UserAgentScripts.h"
-#import <objc/runtime.h>
-#import <AVFoundation/AVFoundation.h>
+#import <AVFoundation/AVMetadataItem.h>
 #import <Foundation/NSString.h>
-#import <JavaScriptCore/JavaScriptCore.h>
 #import <JavaScriptCore/APICast.h>
+#import <JavaScriptCore/JavaScriptCore.h>
+#import <objc/runtime.h>
 #import <wtf/text/Base64.h>
 
 #import "CoreMediaSoftLink.h"
index c73e642..26156ac 100644 (file)
@@ -35,7 +35,8 @@
 #import "SoftLinking.h"
 #import "UUID.h"
 #import "WebCoreNSErrorExtras.h"
-#import <AVFoundation/AVFoundation.h>
+#import <AVFoundation/AVAsset.h>
+#import <AVFoundation/AVAssetResourceLoader.h>
 #import <objc/objc-runtime.h>
 #import <wtf/MainThread.h>
 
index 2756567..6deb492 100644 (file)
 #import "InbandTextTrackPrivateAVF.h"
 #import "Logging.h"
 #import "SoftLinking.h"
-#import <AVFoundation/AVFoundation.h>
+#import <AVFoundation/AVMediaSelectionGroup.h>
+#import <AVFoundation/AVMetadataItem.h>
+#import <AVFoundation/AVPlayer.h>
+#import <AVFoundation/AVPlayerItem.h>
+#import <AVFoundation/AVPlayerItemOutput.h>
 #import <objc/runtime.h>
 
 SOFT_LINK_FRAMEWORK_OPTIONAL(AVFoundation)
index 966de3c..8804daf 100644 (file)
@@ -33,7 +33,6 @@
 #import "Logging.h"
 #import "MediaPlayerPrivateAVFoundationObjC.h"
 #import "SoftLinking.h"
-#import <AVFoundation/AVFoundation.h>
 #import <objc/runtime.h>
 
 SOFT_LINK_FRAMEWORK_OPTIONAL(AVFoundation)
index ac04609..c5b5e37 100644 (file)
 #include "TextTrack.h"
 #endif
 
-#import <AVFoundation/AVFoundation.h>
+#import <AVFoundation/AVAssetImageGenerator.h>
+#import <AVFoundation/AVAssetTrack.h>
+#import <AVFoundation/AVMediaSelectionGroup.h>
+#import <AVFoundation/AVMetadataItem.h>
+#import <AVFoundation/AVPlayer.h>
+#import <AVFoundation/AVPlayerItem.h>
+#import <AVFoundation/AVPlayerItemOutput.h>
+#import <AVFoundation/AVPlayerItemTrack.h>
+#import <AVFoundation/AVPlayerLayer.h>
+#import <AVFoundation/AVTime.h>
 
 #if PLATFORM(IOS) || (PLATFORM(MAC) && ENABLE(VIDEO_PRESENTATION_MODE))
 #import "VideoFullscreenLayerManager.h"
index b4a38cf..bd8fad7 100644 (file)
@@ -44,7 +44,8 @@
 #import "WebLayer.h"
 #import "WebSystemBackdropLayer.h"
 #import "WebTiledBackingLayer.h"
-#import <AVFoundation/AVFoundation.h>
+#import <AVFoundation/AVPlayer.h>
+#import <AVFoundation/AVPlayerLayer.h>
 #import <QuartzCore/QuartzCore.h>
 #import <objc/runtime.h>
 #import <wtf/BlockObjCExceptions.h>
index 30cbd5b..2d79d14 100644 (file)
 
 #import "JSDOMBinding.h"
 #import "SoftLinking.h"
-#import <objc/runtime.h>
-#import <runtime/ArrayBuffer.h>
-#import <runtime/JSArrayBuffer.h>
-#import <AVFoundation/AVFoundation.h>
+#import <AVFoundation/AVMetadataItem.h>
 #import <Foundation/NSString.h>
 #import <JavaScriptCore/APICast.h>
-#import <JavaScriptCore/JavaScriptCore.h>
 #import <JavaScriptCore/JSContextRef.h>
 #import <JavaScriptCore/JSObjectRef.h>
+#import <JavaScriptCore/JavaScriptCore.h>
+#import <objc/runtime.h>
+#import <runtime/ArrayBuffer.h>
+#import <runtime/JSArrayBuffer.h>
 #import <wtf/text/Base64.h>
 
 typedef AVMetadataItem AVMetadataItemType;
index 8ef78ac..28adc4f 100644 (file)
@@ -34,7 +34,7 @@
 #import "TimeRanges.h"
 #import "WebPlaybackControlsManager.h"
 #import "WebPlaybackSessionModel.h"
-#import <AVFoundation/AVFoundation.h>
+#import <AVFoundation/AVTime.h>
 
 #import "CoreMediaSoftLink.h"
 
index c82e32b..8e3dfbe 100644 (file)
@@ -31,7 +31,7 @@
 
 #import "WebVideoFullscreenHUDWindowController.h"
 #import "WebWindowAnimation.h"
-#import <AVFoundation/AVFoundation.h>
+#import <AVFoundation/AVPlayerLayer.h>
 #import <Carbon/Carbon.h>
 #import <WebCore/DisplaySleepDisabler.h>
 #import <WebCore/HTMLVideoElement.h>
index a1381b8..9424601 100644 (file)
@@ -34,7 +34,9 @@
 #import "RealtimeMediaSourceSettings.h"
 #import "SoftLinking.h"
 #import "WebAudioSourceProviderAVFObjC.h"
-#import <AVFoundation/AVFoundation.h>
+#import <AVFoundation/AVCaptureInput.h>
+#import <AVFoundation/AVCaptureOutput.h>
+#import <AVFoundation/AVCaptureSession.h>
 #import <CoreAudio/CoreAudioTypes.h>
 #import <wtf/HashSet.h>
 
index 3199fde..d047156 100644 (file)
@@ -40,7 +40,8 @@
 #import "RealtimeMediaSourceSupportedConstraints.h"
 #import "SoftLinking.h"
 #import "UUID.h"
-#import <AVFoundation/AVFoundation.h>
+#import <AVFoundation/AVCaptureDevice.h>
+#import <AVFoundation/AVCaptureSession.h>
 #import <objc/runtime.h>
 #import <wtf/MainThread.h>
 #import <wtf/NeverDestroyed.h>
index bd0de71..cb7e1dc 100644 (file)
 
 #import "AVCaptureDeviceManager.h"
 #import "AudioSourceProvider.h"
-#import "CoreMediaSoftLink.h"
 #import "Logging.h"
 #import "MediaConstraints.h"
 #import "RealtimeMediaSourceSettings.h"
-#import "SoftLinking.h"
 #import "UUID.h"
-#import <AVFoundation/AVFoundation.h>
+#import <AVFoundation/AVCaptureDevice.h>
+#import <AVFoundation/AVCaptureInput.h>
+#import <AVFoundation/AVCaptureOutput.h>
+#import <AVFoundation/AVCaptureSession.h>
 #import <objc/runtime.h>
 #import <wtf/MainThread.h>
 
+#import "CoreMediaSoftLink.h"
+
 typedef AVCaptureConnection AVCaptureConnectionType;
 typedef AVCaptureDevice AVCaptureDeviceTypedef;
 typedef AVCaptureDeviceInput AVCaptureDeviceInputType;
index cfe6897..f599c39 100644 (file)
 #import "RealtimeMediaSourcePreview.h"
 #import "RealtimeMediaSourceSettings.h"
 #import "WebActionDisablingCALayerDelegate.h"
-#import <AVFoundation/AVFoundation.h>
+#import <AVFoundation/AVCaptureDevice.h>
+#import <AVFoundation/AVCaptureInput.h>
+#import <AVFoundation/AVCaptureOutput.h>
+#import <AVFoundation/AVCaptureSession.h>
+#import <AVFoundation/AVCaptureVideoPreviewLayer.h>
 #import <objc/runtime.h>
 
 #if PLATFORM(IOS)