<http://webkit.org/b/61078> Use toHTTPPipeliningPriority() in initializeMaximumHTTPCo...
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 May 2011 18:20:55 +0000 (18:20 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 May 2011 18:20:55 +0000 (18:20 +0000)
Reviewed by Joseph Pecoraro.

* platform/network/cf/ResourceRequestCFNet.cpp:
(WebCore::initializeMaximumHTTPConnectionCountPerHost): Use
toHTTPPipeliningPriority() to convert arguments passed to
wkSetHTTPPipeliningMaximumPriority() and
wkSetHTTPPipeliningMinimumFastLanePriority().

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

Source/WebCore/ChangeLog
Source/WebCore/platform/network/cf/ResourceRequestCFNet.cpp

index 3f7873d..a9d48e2 100644 (file)
@@ -1,3 +1,15 @@
+2011-05-18  David Kilzer  <ddkilzer@apple.com>
+
+        <http://webkit.org/b/61078> Use toHTTPPipeliningPriority() in initializeMaximumHTTPConnectionCountPerHost()
+
+        Reviewed by Joseph Pecoraro.
+
+        * platform/network/cf/ResourceRequestCFNet.cpp:
+        (WebCore::initializeMaximumHTTPConnectionCountPerHost): Use
+        toHTTPPipeliningPriority() to convert arguments passed to
+        wkSetHTTPPipeliningMaximumPriority() and
+        wkSetHTTPPipeliningMinimumFastLanePriority().
+
 2011-05-18  Erik Arvidsson  <arv@chromium.org>
 
         Reviewed by Ojan Vafai.
index 374ab85..e930e8f 100644 (file)
@@ -253,10 +253,10 @@ unsigned initializeMaximumHTTPConnectionCountPerHost()
         ResourceRequest::setHTTPPipeliningEnabled(true);
 
     if (ResourceRequest::httpPipeliningEnabled()) {
-        wkSetHTTPPipeliningMaximumPriority(ResourceLoadPriorityHighest);
+        wkSetHTTPPipeliningMaximumPriority(toHTTPPipeliningPriority(ResourceLoadPriorityHighest));
 #if !PLATFORM(WIN)
         // FIXME: <rdar://problem/9375609> Implement minimum fast lane priority setting on Windows
-        wkSetHTTPPipeliningMinimumFastLanePriority(ResourceLoadPriorityMedium);
+        wkSetHTTPPipeliningMinimumFastLanePriority(toHTTPPipeliningPriority(ResourceLoadPriorityMedium));
 #endif
         // When pipelining do not rate-limit requests sent from WebCore since CFNetwork handles that.
         return unlimitedConnectionCount;