⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 201492 in webkit


Ignore:
Timestamp:
May 28, 2016, 4:16:50 PM (10 years ago)
Author:
ap@apple.com
Message:

Fix the build with newer clang and other custom configuration options
​https://bugs.webkit.org/show_bug.cgi?id=158161

Reviewed by Dan Bernstein.

Source/WebCore:

  • platform/mac/WebVideoFullscreenInterfaceMac.mm:

(WebCore::WebVideoFullscreenInterfaceMac::rateChanged): Added UNUSED_PARAMs for the
case where this function is unimplemented.
(WebCore::WebVideoFullscreenInterfaceMac::setExternalPlayback): Added a non-additions
version of this function.

  • platform/spi/cf/CFNetworkSPI.h: Silence nullability-completeness (and other) warnings.

I doubt that it's practical to get these right for every SDK version at this time. Added
functions for overriding HTTPS certicate behavior that we used to declare in .m files.

  • platform/spi/mac/AVFoundationSPI.h: Define AVAssetCache conditionally.

Source/WebKit2:

  • NetworkProcess/ios/NetworkProcessIOS.mm: -setAllowsSpecificHTTPSCertificate:forHost:

is now in CFNetworkSPI.h

  • NetworkProcess/mac/NetworkProcessMac.mm: Ditto.
  • Shared/mac/CookieStorageShimLibrary.cpp:

(WebKit::WebKitCookieStorageShimInitialize): Use more portable std::call_once.

Location:
trunk/Source
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r201490 r201492  
     12016-05-28  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Fix the build with newer clang and other custom configuration options
     4        https://bugs.webkit.org/show_bug.cgi?id=158161
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * platform/mac/WebVideoFullscreenInterfaceMac.mm:
     9        (WebCore::WebVideoFullscreenInterfaceMac::rateChanged): Added UNUSED_PARAMs for the
     10        case where this function is unimplemented.
     11        (WebCore::WebVideoFullscreenInterfaceMac::setExternalPlayback): Added a non-additions
     12        version of this function.
     13        * platform/spi/cf/CFNetworkSPI.h: Silence nullability-completeness (and other) warnings.
     14        I doubt that it's practical to get these right for every SDK version at this time. Added
     15        functions for overriding HTTPS certicate behavior that we used to declare in .m files.
     16        * platform/spi/mac/AVFoundationSPI.h: Define AVAssetCache conditionally.
     17
    1182016-05-28  Ryosuke Niwa  <rniwa@webkit.org>
    219
  • trunk/Source/WebCore/platform/mac/WebVideoFullscreenInterfaceMac.mm

    r200595 r201492  
    112112#if USE(APPLE_INTERNAL_SDK)
    113113    [videoFullscreenInterfaceObjC() updateIsPlaying:isPlaying newPlaybackRate:playbackRate];
     114#else
     115    UNUSED_PARAM(isPlaying);
     116    UNUSED_PARAM(playbackRate);
    114117#endif
    115118}
    … …  
    173176}
    174177
     178void WebVideoFullscreenInterfaceMac::setExternalPlayback(bool, ExternalPlaybackTargetType, String)
     179{
     180}
     181
    175182bool supportsPictureInPicture()
    176183{
  • trunk/Source/WebCore/platform/spi/cf/CFNetworkSPI.h

    r199167 r201492  
    2424 */
    2525
     26#pragma clang system_header
     27
    2628#ifndef CFNetworkSPI_h
    2729#define CFNetworkSPI_h
    … …  
    8688#if defined(__OBJC__)
    8789@interface NSURLRequest ()
     90+ (NSArray *)allowsSpecificHTTPSCertificateForHost:(NSString *)host;
     91+ (void)setAllowsSpecificHTTPSCertificate:(NSArray *)allow forHost:(NSString *)host;
    8892- (void)_setProperty:(id)value forKey:(NSString *)key;
    8993@end
  • trunk/Source/WebCore/platform/spi/mac/AVFoundationSPI.h

    r199326 r201492  
    5959#import <AVFoundation/AVAssetCache_Private.h>
    6060#else
     61#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000)
     62#import <AVFoundation/AVAssetCache.h>
     63#else
     64@interface AVAssetCache : NSObject
     65@end
     66#endif
    6167NS_ASSUME_NONNULL_BEGIN
    62 @interface AVAssetCache : NSObject
     68@interface AVAssetCache ()
    6369+ (AVAssetCache *)assetCacheWithURL:(NSURL *)URL;
    6470- (id)initWithURL:(NSURL *)URL;
  • trunk/Source/WebKit2/ChangeLog

    r201484 r201492  
     12016-05-28  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Fix the build with newer clang and other custom configuration options
     4        https://bugs.webkit.org/show_bug.cgi?id=158161
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * NetworkProcess/ios/NetworkProcessIOS.mm: -setAllowsSpecificHTTPSCertificate:forHost:
     9        is now in CFNetworkSPI.h
     10        * NetworkProcess/mac/NetworkProcessMac.mm: Ditto.
     11        * Shared/mac/CookieStorageShimLibrary.cpp:
     12        (WebKit::WebKitCookieStorageShimInitialize): Use more portable std::call_once.
     13
    1142016-05-28  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebKit2/NetworkProcess/ios/NetworkProcessIOS.mm

    r192697 r201492  
    3434#import "SandboxInitializationParameters.h"
    3535#import "SecItemShim.h"
     36#import <WebCore/CFNetworkSPI.h>
    3637#import <WebCore/CertificateInfo.h>
    3738#import <WebCore/NotImplemented.h>
    … …  
    3940
    4041#define ENABLE_MANUAL_NETWORK_SANDBOXING 0
    41 
    42 @interface NSURLRequest (WKDetails)
    43 + (void)setAllowsSpecificHTTPSCertificate:(NSArray *)certificateChain forHost:(NSString *)host;
    44 @end
    4542
    4643using namespace WebCore;
  • trunk/Source/WebKit2/NetworkProcess/mac/NetworkProcessMac.mm

    r194378 r201492  
    4848
    4949using namespace WebCore;
    50 
    51 @interface NSURLRequest (Details)
    52 + (void)setAllowsSpecificHTTPSCertificate:(NSArray *)allow forHost:(NSString *)host;
    53 @end
    5450
    5551namespace WebKit {
  • trunk/Source/WebKit2/Shared/mac/CookieStorageShimLibrary.cpp

    r192697 r201492  
    3030
    3131#include <WebCore/DynamicLinkerInterposing.h>
     32#include <mutex>
    3233
    3334extern "C" CFDictionaryRef _CFHTTPCookieStorageCopyRequestHeaderFieldsForURL(CFAllocatorRef inAllocator, CFHTTPCookieStorageRef inCookieStorage, CFURLRef inRequestURL);
    … …  
    8182    // Because the value of cookieStorageShimCallbacks will be read from mulitple threads,
    8283    // only allow it to be initialized once.
    83     static int initialized = 0;
    84     if (!OSAtomicCompareAndSwapInt(0, 1, &initialized)) {
    85         return;
    86     }
    87 
    88     cookieStorageShimCallbacks = callbacks;
     84    static std::once_flag initializeCallbacksOnceFlag;
     85    std::call_once(initializeCallbacksOnceFlag, [&callbacks] { cookieStorageShimCallbacks = callbacks; });
    8986}
    9087   
Note: See TracChangeset for help on using the changeset viewer.