Changeset 290083 in webkit


Ignore:
Timestamp:
Feb 17, 2022, 3:29:34 PM (4 years ago)
Author:
Kocsen Chung
Message:

Cherry-pick r290076. rdar://problem/89076606

[Cocoa] Make AVFoundationSPI.h robust against changes in system headers
https://bugs.webkit.org/show_bug.cgi?id=236787

Reviewed by Eric Carlson.

Source/WebCore/PAL:

Only re-declare classes and add categories for non-Apple Internal builds, or when those
definitions would be missing from system headers. The presence of the classes and their
methods are already checked at runtime, so this is a build-only change.

  • pal/spi/cocoa/AVFoundationSPI.h:

Source/WTF:

  • wtf/PlatformHave.h:

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

Location:
branches/safari-614.1.4-branch/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-614.1.4-branch/Source/WTF/ChangeLog

    r289722 r290083  
     12022-02-17  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r290076. rdar://problem/89076606
     4
     5    [Cocoa] Make AVFoundationSPI.h robust against changes in system headers
     6    https://bugs.webkit.org/show_bug.cgi?id=236787
     7   
     8    Reviewed by Eric Carlson.
     9   
     10    Source/WebCore/PAL:
     11   
     12    Only re-declare classes and add categories for non-Apple Internal builds, or when those
     13    definitions would be missing from system headers. The presence of the classes and their
     14    methods are already checked at runtime, so this is a build-only change.
     15   
     16    * pal/spi/cocoa/AVFoundationSPI.h:
     17   
     18    Source/WTF:
     19   
     20    * wtf/PlatformHave.h:
     21   
     22    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290076 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     23
     24    2022-02-17  Jer Noble  <jer.noble@apple.com>
     25
     26            [Cocoa] Make AVFoundationSPI.h robust against changes in system headers
     27            https://bugs.webkit.org/show_bug.cgi?id=236787
     28
     29            Reviewed by Eric Carlson.
     30
     31            * wtf/PlatformHave.h:
     32
    1332022-02-13  Matt Woodrow  <mattwoodrow@apple.com>
    234
  • branches/safari-614.1.4-branch/Source/WTF/wtf/PlatformHave.h

    r289696 r290083  
    389389#endif
    390390
     391#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101504) \
     392    || (((PLATFORM(IOS) && !PLATFORM(IOS_FAMILY_SIMULATOR)) || PLATFORM(MACCATALYST)) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130400) \
     393    || (PLATFORM(WATCHOS) && !PLATFORM(IOS_FAMILY_SIMULATOR) && __WATCH_OS_VERSION_MAX_ALLOWED >= 60400) \
     394    || (PLATFORM(APPLETV) && !PLATFORM(IOS_FAMILY_SIMULATOR) && __TV_OS_VERSION_MAX_ALLOWED >= 130400)
     395#define HAVE_AVCONTENTKEYREPORTGROUP 1
     396#endif
     397
     398#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000) \
     399    || (((PLATFORM(IOS) && !PLATFORM(IOS_FAMILY_SIMULATOR)) || PLATFORM(MACCATALYST)) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000)
     400#define HAVE_AVCONTENTKEYSESSIONWILLOUTPUTBEOBSCURED 1
     401#endif
     402
    391403#if PLATFORM(MAC) || PLATFORM(IOS) || PLATFORM(MACCATALYST)
    392404#define HAVE_SEC_KEY_PROXY 1
  • branches/safari-614.1.4-branch/Source/WebCore/PAL/ChangeLog

    r289697 r290083  
     12022-02-17  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r290076. rdar://problem/89076606
     4
     5    [Cocoa] Make AVFoundationSPI.h robust against changes in system headers
     6    https://bugs.webkit.org/show_bug.cgi?id=236787
     7   
     8    Reviewed by Eric Carlson.
     9   
     10    Source/WebCore/PAL:
     11   
     12    Only re-declare classes and add categories for non-Apple Internal builds, or when those
     13    definitions would be missing from system headers. The presence of the classes and their
     14    methods are already checked at runtime, so this is a build-only change.
     15   
     16    * pal/spi/cocoa/AVFoundationSPI.h:
     17   
     18    Source/WTF:
     19   
     20    * wtf/PlatformHave.h:
     21   
     22    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290076 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     23
     24    2022-02-17  Jer Noble  <jer.noble@apple.com>
     25
     26            [Cocoa] Make AVFoundationSPI.h robust against changes in system headers
     27            https://bugs.webkit.org/show_bug.cgi?id=236787
     28
     29            Reviewed by Eric Carlson.
     30
     31            Only re-declare classes and add categories for non-Apple Internal builds, or when those
     32            definitions would be missing from system headers. The presence of the classes and their
     33            methods are already checked at runtime, so this is a build-only change.
     34
     35            * pal/spi/cocoa/AVFoundationSPI.h:
     36
    1372022-02-12  Jer Noble  <jer.noble@apple.com>
    238
  • branches/safari-614.1.4-branch/Source/WebCore/PAL/pal/spi/cocoa/AVFoundationSPI.h

    r288031 r290083  
    3838#import <AVFoundation/AVAssetCache_Private.h>
    3939#import <AVFoundation/AVCaptureSession_Private.h>
     40#import <AVFoundation/AVContentKeySession_Private.h>
    4041#import <AVFoundation/AVMediaSelectionGroup_Private.h>
    4142#import <AVFoundation/AVOutputContext_Private.h>
     
    225226
    226227#if HAVE(AVCONTENTKEYSESSION)
     228
     229#if !USE(APPLE_INTERNAL_SDK) || !HAVE(AVCONTENTKEYREPORTGROUP)
    227230@interface AVContentKeyReportGroup : NSObject
    228231@property (readonly, nullable) NSData *contentProtectionSessionIdentifier;
     
    236239- (nonnull AVContentKeyReportGroup *)makeContentKeyGroup;
    237240@end
    238 
     241#endif
     242
     243#if !USE(APPLE_INTERNAL_SDK) || !HAVE(AVCONTENTKEYSESSIONWILLOUTPUTBEOBSCURED)
    239244@interface AVContentKeyRequest (OutputObscured)
    240245NS_ASSUME_NONNULL_BEGIN
     
    242247NS_ASSUME_NONNULL_END
    243248@end
    244 
    245 #if HAVE(AVCONTENTKEYREQUEST_PENDING_PROTECTION_STATUS)
     249#endif
     250
     251#if !USE(APPLE_INTERNAL_SDK) || !HAVE(AVCONTENTKEYREQUEST_PENDING_PROTECTION_STATUS)
    246252typedef NS_ENUM(NSInteger, AVExternalContentProtectionStatus) {
    247253    AVExternalContentProtectionStatusPending      = 0,
Note: See TracChangeset for help on using the changeset viewer.