-
beidson authored
Reviewed by Tim <rdar://problem/5008925> Expose the NSURLConnection delegate willCacheResponse API to WebResourceLoadDelegate * http/tests/misc/willCacheResponse-delegate-callback-expected.txt: Added. * http/tests/misc/willCacheResponse-delegate-callback.html: Added. WebCore: Reviewed by Tim <rdar://problem/5008925> Expose the NSURLConnection delegate willCacheResponse API to WebResourceLoadDelegate * WebCore.xcodeproj/project.pbxproj: Added ResourceLoaderMac.mm * loader/FrameLoaderClient.h: Add the willCacheResponse SPI for WebKit to implement * loader/ResourceLoader.h: * loader/mac/ResourceLoaderMac.mm: Added. (WebCore::ResourceLoader::willCacheResponse): Return the new cachedResponse from the client * platform/graphics/svg/SVGImageEmptyClients.h: (WebCore::SVGEmptyFrameLoaderClient::willCacheResponse): Stub * platform/network/ResourceHandleClient.h: (WebCore::ResourceHandleClient::willCacheResponse): Return the new cachedResponse from the client * platform/network/mac/ResourceHandleMac.mm: (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]): Call to get the new cachedURLResponse before calling for the cache policy WebKit: Reviewed by Tim <rdar://problem/5008925> Expose the NSURLConnection delegate willCacheResponse API to WebResourceLoadDelegate * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::willCacheResponse): Call [WebResourceLoadDelegate webView:resource:willCacheResponse:fromDataSource:]; * WebView/WebView.mm: (-[WebView _cacheResourceLoadDelegateImplementations]): Pull out the willCacheResponse impl * WebView/WebViewPrivate.h: Add WebResourceLoadDelegatePrivate category for this new SPI WebKitTools: Reviewed by Tim <rdar://problem/5008925> Expose the NSURLConnection delegate willCacheResponse API to WebResourceLoadDelegate * DumpRenderTree/ResourceLoadDelegate.m: (-[ResourceLoadDelegate webView:resource:willCacheResponse:fromDataSource:]): Add the willCacheResponse delegate call git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20937 268f45cc-cd09-0410-ab3c-d52691b4dbfc
a5e83332