Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix style CFNetworkSPI style checker warnings from r239698
https://bugs.webkit.org/show_bug.cgi?id=193369

Reviewed by Joseph Pecoraro.

Source/WebCore/PAL:

* pal/spi/cf/CFNetworkSPI.h:

Source/WebKit:

* NetworkProcess/cocoa/NetworkSessionCocoa.mm:
(-[WKNetworkSessionDelegate URLSession:task:didFinishCollectingMetrics:]):

Source/WTF:

* wtf/Platform.h:


Canonical link: https://commits.webkit.org/207868@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239884 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
dcrousso committed Jan 12, 2019
1 parent 05ab536 commit 62552c4
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Source/WTF/ChangeLog
@@ -1,3 +1,12 @@
2019-01-11 Devin Rousso <drousso@apple.com>

Fix style CFNetworkSPI style checker warnings from r239698
https://bugs.webkit.org/show_bug.cgi?id=193369

Reviewed by Joseph Pecoraro.

* wtf/Platform.h:

2019-01-11 Said Abou-Hallawa <sabouhallawa@apple.com>

WorkQueue::concurrentApply() passes a raw pointer to a temporary String to Thread::create().
Expand Down
4 changes: 4 additions & 0 deletions Source/WTF/wtf/Platform.h
Expand Up @@ -1471,3 +1471,7 @@
#if (PLATFORM(MAC) && (__MAC_OS_X_VERSION_MIN_REQUIRED == 101200 || (__MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101404))) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000 && __IPHONE_OS_VERSION_MAX_ALLOWED >= 120200) || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 50000 && __WATCH_OS_VERSION_MAX_ALLOWED >= 50200) || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 120000 && __TV_OS_VERSION_MAX_ALLOWED >= 120200)
#define HAVE_CFNETWORK_OVERRIDE_SESSION_COOKIE_ACCEPT_POLICY 1
#endif

#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000)
#define HAVE_CFNETWORK_NEGOTIATED_SSL_PROTOCOL_CIPHER 1
#endif
9 changes: 9 additions & 0 deletions Source/WebCore/PAL/ChangeLog
@@ -1,3 +1,12 @@
2019-01-11 Devin Rousso <drousso@apple.com>

Fix style CFNetworkSPI style checker warnings from r239698
https://bugs.webkit.org/show_bug.cgi?id=193369

Reviewed by Joseph Pecoraro.

* pal/spi/cf/CFNetworkSPI.h:

2019-01-10 John Wilander <wilander@apple.com>

Override the session configuration for cookieAcceptPolicy
Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h
Expand Up @@ -215,7 +215,7 @@ typedef NS_ENUM(NSInteger, NSURLSessionCompanionProxyPreference) {
@end
#endif

#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000)
#if HAVE(CFNETWORK_NEGOTIATED_SSL_PROTOCOL_CIPHER)
@interface NSURLSessionTaskTransactionMetrics ()
@property (assign) SSLProtocol _negotiatedTLSProtocol;
@property (assign) SSLCipherSuite _negotiatedTLSCipher;
Expand Down
10 changes: 10 additions & 0 deletions Source/WebKit/ChangeLog
@@ -1,3 +1,13 @@
2019-01-11 Devin Rousso <drousso@apple.com>

Fix style CFNetworkSPI style checker warnings from r239698
https://bugs.webkit.org/show_bug.cgi?id=193369

Reviewed by Joseph Pecoraro.

* NetworkProcess/cocoa/NetworkSessionCocoa.mm:
(-[WKNetworkSessionDelegate URLSession:task:didFinishCollectingMetrics:]):

2019-01-11 Wenson Hsieh <wenson_hsieh@apple.com>

[iOS] Precision drop state thrashes when dragging near the top edge of an editable element
Expand Down
4 changes: 2 additions & 2 deletions Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm
Expand Up @@ -93,7 +93,7 @@ static NSURLSessionAuthChallengeDisposition toNSURLSessionAuthChallengeDispositi
return WebCore::NetworkLoadPriority::Medium;
}

#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000)
#if HAVE(CFNETWORK_NEGOTIATED_SSL_PROTOCOL_CIPHER)
static String stringForSSLProtocol(SSLProtocol protocol)
{
switch (protocol) {
Expand Down Expand Up @@ -660,7 +660,7 @@ - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didFini
networkLoadMetrics.connectionIdentifier = String([m._connectionIdentifier UUIDString]);
#endif

#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000)
#if HAVE(CFNETWORK_NEGOTIATED_SSL_PROTOCOL_CIPHER)
networkLoadMetrics.tlsProtocol = stringForSSLProtocol(m._negotiatedTLSProtocol);
networkLoadMetrics.tlsCipher = stringForSSLCipher(m._negotiatedTLSCipher);
#endif
Expand Down

0 comments on commit 62552c4

Please sign in to comment.