Set minimum priority for fast lane connections
authorpsolanki@apple.com <psolanki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Apr 2011 19:50:37 +0000 (19:50 +0000)
committerpsolanki@apple.com <psolanki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Apr 2011 19:50:37 +0000 (19:50 +0000)
https://bugs.webkit.org/show_bug.cgi?id=58353

Reviewed by David Kilzer.

Source/WebCore:

* WebCore.exp.in:
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:
* platform/network/cf/ResourceRequestCFNet.cpp:
(WebCore::initializeMaximumHTTPConnectionCountPerHost): Call
wkSetHTTPPipeliningMinimumFastLanePriority to allow javascript resources to use the fast
lane connections.

Source/WebKit/mac:

* WebCoreSupport/WebSystemInterface.mm:
(InitWebCoreSystemInterface): Support for new WKSI method WKSetHTTPPipeliningMinimumFastLanePriority.

Source/WebKit2:

* WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
(InitWebCoreSystemInterface): Support for new WKSI method WKSetHTTPPipeliningMinimumFastLanePriority.

WebKitLibraries:

Add WKSetHTTPPipeliningMinimumFastLanePriority.

* WebKitSystemInterface.h:
* libWebKitSystemInterfaceLeopard.a:
* libWebKitSystemInterfaceSnowLeopard.a:

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

13 files changed:
Source/WebCore/ChangeLog
Source/WebCore/WebCore.exp.in
Source/WebCore/platform/mac/WebCoreSystemInterface.h
Source/WebCore/platform/mac/WebCoreSystemInterface.mm
Source/WebCore/platform/network/cf/ResourceRequestCFNet.cpp
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
WebKitLibraries/ChangeLog
WebKitLibraries/WebKitSystemInterface.h
WebKitLibraries/libWebKitSystemInterfaceLeopard.a
WebKitLibraries/libWebKitSystemInterfaceSnowLeopard.a

index a278adfedb8fce5d8742cf095bdd5abba6c1af9b..0762f1a1cdf881d6b8248ed71d59541fef73e30b 100644 (file)
@@ -1,3 +1,18 @@
+2011-04-14  Pratik Solanki  <psolanki@apple.com>
+
+        Reviewed by David Kilzer.
+
+        Set minimum priority for fast lane connections
+        https://bugs.webkit.org/show_bug.cgi?id=58353
+
+        * WebCore.exp.in:
+        * platform/mac/WebCoreSystemInterface.h:
+        * platform/mac/WebCoreSystemInterface.mm:
+        * platform/network/cf/ResourceRequestCFNet.cpp:
+        (WebCore::initializeMaximumHTTPConnectionCountPerHost): Call
+        wkSetHTTPPipeliningMinimumFastLanePriority to allow javascript resources to use the fast
+        lane connections.
+
 2011-04-14  Kenneth Russell  <kbr@google.com>
 
         Reviewed by Dimitri Glazkov.
index 17d0863ca761615b74f7add8d5bd8d705801194f..bac48a2cbc2e3f63d1a82bbdf7bde642cafc4250 100644 (file)
@@ -1373,6 +1373,7 @@ _wkSetCookieStoragePrivateBrowsingEnabled
 _wkSetDragImage
 _wkSetHTTPCookiesForURL
 _wkSetHTTPPipeliningMaximumPriority
+_wkSetHTTPPipeliningMinimumFastLanePriority
 _wkSetHTTPPipeliningPriority
 _wkSetNSURLConnectionDefersCallbacks
 _wkSetNSURLRequestShouldContentSniff
index cf29c0c002646753a797d82a46446c65fd7a201c..5393438553d86d3fa2e7b943bb99cdf8d094313a 100644 (file)
@@ -157,6 +157,7 @@ extern unsigned (*wkInitializeMaximumHTTPConnectionCountPerHost)(unsigned prefer
 extern int (*wkGetHTTPPipeliningPriority)(NSURLRequest *);
 extern void (*wkSetHTTPPipeliningMaximumPriority)(int maximumPriority);
 extern void (*wkSetHTTPPipeliningPriority)(NSMutableURLRequest *, int priority);
+extern void (*wkSetHTTPPipeliningMinimumFastLanePriority)(int priority);
 extern void (*wkSetCONNECTProxyForStream)(CFReadStreamRef, CFStringRef proxyHost, CFNumberRef proxyPort);
 extern void (*wkSetCONNECTProxyAuthorizationForStream)(CFReadStreamRef, CFStringRef proxyAuthorizationString);
 extern CFHTTPMessageRef (*wkCopyCONNECTProxyResponse)(CFReadStreamRef, CFURLRef responseURL);
index 8292eec2f6714aa5365b3b859c35f8ec045a4adc..6a78ff64d8a2631baab8405fed377cd78e44a435 100644 (file)
@@ -93,6 +93,7 @@ unsigned (*wkInitializeMaximumHTTPConnectionCountPerHost)(unsigned preferredConn
 int (*wkGetHTTPPipeliningPriority)(NSURLRequest *);
 void (*wkSetHTTPPipeliningMaximumPriority)(int priority);
 void (*wkSetHTTPPipeliningPriority)(NSMutableURLRequest *, int priority);
+void (*wkSetHTTPPipeliningMinimumFastLanePriority)(int priority);
 void (*wkSetCONNECTProxyForStream)(CFReadStreamRef, CFStringRef proxyHost, CFNumberRef proxyPort);
 void (*wkSetCONNECTProxyAuthorizationForStream)(CFReadStreamRef, CFStringRef proxyAuthorizationString);
 CFHTTPMessageRef (*wkCopyCONNECTProxyResponse)(CFReadStreamRef, CFURLRef responseURL);
index af287c72918a4493203836622882d6f2e36099ac..0a0bc7c8b66873d226f7249654dffb004570e539 100644 (file)
@@ -220,6 +220,7 @@ 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;
     }
index 52474d44dcf2ae41c5689652c90df37d61fe3b7a..9d01cb5c98ea8a1d6c5fde95f331af5d541205f4 100644 (file)
@@ -1,3 +1,13 @@
+2011-04-14  Pratik Solanki  <psolanki@apple.com>
+
+        Reviewed by David Kilzer.
+
+        Set minimum priority for fast lane connections
+        https://bugs.webkit.org/show_bug.cgi?id=58353
+
+        * WebCoreSupport/WebSystemInterface.mm:
+        (InitWebCoreSystemInterface): Support for new WKSI method WKSetHTTPPipeliningMinimumFastLanePriority.
+
 2011-04-13  Oliver Hunt  <oliver@apple.com>
 
         Reviewed by Geoff Garen.
index 6fcd5ac8e156bf2889a45cd5cd10a1ab98efedf2..de2a1f4b93fc84d688ae95ecfbec6d7320aae434 100644 (file)
@@ -78,6 +78,7 @@ void InitWebCoreSystemInterface(void)
     INIT(SetDragImage);
     INIT(SetHTTPPipeliningMaximumPriority);
     INIT(SetHTTPPipeliningPriority);
+    INIT(SetHTTPPipeliningMinimumFastLanePriority);
     INIT(SetNSURLConnectionDefersCallbacks);
     INIT(SetNSURLRequestShouldContentSniff);
     INIT(SetPatternBaseCTM);
index 44f72b08281ca8253a8f671177a0805d7cefeb93..800bd5b469f0bd7a0bb1accb10eed0e6ba7bbe9b 100644 (file)
@@ -1,3 +1,13 @@
+2011-04-14  Pratik Solanki  <psolanki@apple.com>
+
+        Reviewed by David Kilzer.
+
+        Set minimum priority for fast lane connections
+        https://bugs.webkit.org/show_bug.cgi?id=58353
+
+        * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
+        (InitWebCoreSystemInterface): Support for new WKSI method WKSetHTTPPipeliningMinimumFastLanePriority.
+
 2011-04-14  Anders Carlsson  <andersca@apple.com>
 
         Clang warning fixes.
index f5cc96f4d33b8d6f4a19fba6a08be0a532f73433..a4fbc09cc03c7a4bd16d7934df87ece72465be98 100644 (file)
@@ -86,6 +86,7 @@ void InitWebCoreSystemInterface(void)
         INIT(SetDragImage);
         INIT(SetHTTPPipeliningMaximumPriority);
         INIT(SetHTTPPipeliningPriority);
+        INIT(SetHTTPPipeliningMinimumFastLanePriority);
         INIT(SetNSURLConnectionDefersCallbacks);
         INIT(SetNSURLRequestShouldContentSniff);
         INIT(SetPatternBaseCTM);
index 2c745fd916591f10005947ccc1cf0f8297752a33..115688bfc2c8fffc57557da80f354d6fc746e7e7 100644 (file)
@@ -1,3 +1,16 @@
+2011-04-14  Pratik Solanki  <psolanki@apple.com>
+
+        Reviewed by David Kilzer.
+
+        Set minimum priority for fast lane connections
+        https://bugs.webkit.org/show_bug.cgi?id=58353
+
+        Add WKSetHTTPPipeliningMinimumFastLanePriority.
+
+        * WebKitSystemInterface.h:
+        * libWebKitSystemInterfaceLeopard.a:
+        * libWebKitSystemInterfaceSnowLeopard.a:
+
 2011-04-08  Alpha Lam  <hclam@chromium.org>
 
         Unreviewed, rolling out r83335.
index 4a8b54144dbfc5e2162aed36d8466b3bc647dc66..9079919ffc2645a2ca24f26d299859b7e80e0105 100644 (file)
@@ -354,6 +354,7 @@ unsigned WKInitializeMaximumHTTPConnectionCountPerHost(unsigned preferredConnect
 int WKGetHTTPPipeliningPriority(NSURLRequest *);
 void WKSetHTTPPipeliningMaximumPriority(int maximumPriority);
 void WKSetHTTPPipeliningPriority(NSMutableURLRequest *, int priority);
+void WKSetHTTPPipeliningMinimumFastLanePriority(int priority);
 
 void WKSetCONNECTProxyForStream(CFReadStreamRef, CFStringRef proxyHost, CFNumberRef proxyPort);
 void WKSetCONNECTProxyAuthorizationForStream(CFReadStreamRef, CFStringRef proxyAuthorizationString);
index 676ea0fcb99ea4bc408012e2ad5732bc39327af6..6cd6976bd1680c4cb7eccc7b2ec557d8919e6f9a 100644 (file)
Binary files a/WebKitLibraries/libWebKitSystemInterfaceLeopard.a and b/WebKitLibraries/libWebKitSystemInterfaceLeopard.a differ
index e5881dbf2690cecbadfbedf53a5b567cd619cd92..e7e387258725d9f16ddc5d07e5d6baa7953d41c3 100644 (file)
Binary files a/WebKitLibraries/libWebKitSystemInterfaceSnowLeopard.a and b/WebKitLibraries/libWebKitSystemInterfaceSnowLeopard.a differ