[iOS] WebCore fails to build: platform/network/mac/ResourceHandleMac.mm:729:62: error...
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jun 2014 00:37:02 +0000 (00:37 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jun 2014 00:37:02 +0000 (00:37 +0000)
<http://webkit.org/b/133445>
<rdar://problem/17090035>

Reviewed by Alexey Proskuryakov.

* platform/network/mac/ResourceHandleMac.mm: Attempt to fix the
build by including a private header and local declaration.

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

Source/WebCore/ChangeLog
Source/WebCore/platform/network/mac/ResourceHandleMac.mm

index 9367c96..cd57601 100644 (file)
@@ -1,3 +1,14 @@
+2014-06-02  David Kilzer  <ddkilzer@apple.com>
+
+        [iOS] WebCore fails to build: platform/network/mac/ResourceHandleMac.mm:729:62: error: use of undeclared identifier '_CFURLConnectionCopyTimingData'
+        <http://webkit.org/b/133445>
+        <rdar://problem/17090035>
+
+        Reviewed by Alexey Proskuryakov.
+
+        * platform/network/mac/ResourceHandleMac.mm: Attempt to fix the
+        build by including a private header and local declaration.
+
 2014-05-31  Anders Carlsson  <andersca@apple.com>
 
         Change DeferrableOneShotTimer to use std::function instead of being a class template
 2014-05-31  Anders Carlsson  <andersca@apple.com>
 
         Change DeferrableOneShotTimer to use std::function instead of being a class template
index 8466706..63c6560 100644 (file)
 #import <wtf/text/Base64.h>
 #import <wtf/text/CString.h>
 
 #import <wtf/text/Base64.h>
 #import <wtf/text/CString.h>
 
+#if USE(CFNETWORK)
+#if __has_include(<CFNetwork/CFURLConnectionPriv.h>)
+#import <CFNetwork/CFURLConnectionPriv.h>
+#endif
+typedef struct _CFURLConnection* CFURLConnectionRef;
+extern "C" {
+CFDictionaryRef _CFURLConnectionCopyTimingData(CFURLConnectionRef);
+}
+#endif // USE(CFNETWORK)
+
 #if __has_include(<Foundation/NSURLConnectionPrivate.h>)
 #import <Foundation/NSURLConnectionPrivate.h>
 #else
 #if __has_include(<Foundation/NSURLConnectionPrivate.h>)
 #import <Foundation/NSURLConnectionPrivate.h>
 #else