X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWebCore%2Fplatform%2Fnetwork%2Fcf%2FResourceRequestCFNet.cpp;h=0a0bc7c8b66873d226f7249654dffb004570e539;hp=7a1dfd56dd7a3f8c71f601b14f8aa4727e85aa51;hb=cb37e50f791023757aa2429e6f651d5e3c65a595;hpb=c677be573caecfad85ed30bba22588bea176f5e3 diff --git a/Source/WebCore/platform/network/cf/ResourceRequestCFNet.cpp b/Source/WebCore/platform/network/cf/ResourceRequestCFNet.cpp index 7a1dfd5..0a0bc7c 100644 --- a/Source/WebCore/platform/network/cf/ResourceRequestCFNet.cpp +++ b/Source/WebCore/platform/network/cf/ResourceRequestCFNet.cpp @@ -29,6 +29,7 @@ #include "ResourceRequest.h" #if PLATFORM(MAC) +#include "ResourceLoadPriority.h" #include "WebCoreSystemInterface.h" #endif @@ -195,6 +196,17 @@ void ResourceRequest::doUpdateResourceRequest() m_httpBody = httpBodyFromRequest(m_cfRequest.get()); } +#if USE(CFURLSTORAGESESSIONS) + +void ResourceRequest::setStorageSession(CFURLStorageSessionRef storageSession) +{ + CFMutableURLRequestRef cfRequest = CFURLRequestCreateMutableCopy(0, m_cfRequest.get()); + wkSetRequestStorageSession(storageSession, cfRequest); + m_cfRequest.adoptCF(cfRequest); +} + +#endif + #endif // USE(CFNETWORK) unsigned initializeMaximumHTTPConnectionCountPerHost() @@ -207,6 +219,8 @@ unsigned initializeMaximumHTTPConnectionCountPerHost() #if PLATFORM(MAC) if (isHTTPPipeliningEnabled()) { + wkSetHTTPPipeliningMaximumPriority(ResourceLoadPriorityHighest); + wkSetHTTPPipeliningMinimumFastLanePriority(ResourceLoadPriorityMedium); // When pipelining do not rate-limit requests sent from WebCore since CFNetwork handles that. return unlimitedConnectionCount; }