Changeset 85684 in webkit
- Timestamp:
- May 3, 2011 4:25:15 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r85681 r85684 1 2011-05-03 David Kilzer <ddkilzer@apple.com> 2 3 <http://webkit.org/b/59838> Implement HTTP pipelining for CoreFoundation-based networking 4 5 Reviewed by Antti Koivisto. 6 7 * platform/network/cf/ResourceRequestCFNet.cpp: 8 (WebCore::ResourceRequest::doUpdatePlatformRequest): Set the 9 priority on the request if HTTP pipelining is enabled. 10 (WebCore::ResourceRequest::doUpdateResourceRequest): Read the 11 priority from the request if HTTP pipelining is enabled. 12 (readBooleanPreference): Enable code when compiling with 13 USE(CFNETWORK). 14 (WebCore::initializeMaximumHTTPConnectionCountPerHost): Ditto. 15 Comment out setting the minimum fast lane priority on Windows 16 since it's not currently available. 17 1 18 2011-05-03 Simon Fraser <simon.fraser@apple.com> 2 19 -
trunk/Source/WebCore/platform/network/cf/ResourceRequestCFNet.cpp
r85036 r85684 131 131 CFURLRequestSetHTTPRequestMethod(cfRequest, requestMethod.get()); 132 132 133 if (httpPipeliningEnabled()) 134 wkSetHTTPPipeliningPriority(cfRequest, toHTTPPipeliningPriority(m_priority)); 135 133 136 setHeaderFields(cfRequest, httpHeaderFields()); 134 137 WebCore::setHTTPBody(cfRequest, httpBody()); … … 173 176 } 174 177 m_allowCookies = CFURLRequestShouldHandleHTTPCookies(m_cfRequest.get()); 178 179 if (httpPipeliningEnabled()) 180 m_priority = toResourceLoadPriority(wkGetHTTPPipeliningPriority(m_cfRequest.get())); 175 181 176 182 m_httpHeaderFields.clear(); … … 222 228 } 223 229 224 #if PLATFORM(MAC) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)230 #if USE(CFNETWORK) || PLATFORM(MAC) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) 225 231 static inline bool readBooleanPreference(CFStringRef key) 226 232 { … … 238 244 unsigned maximumHTTPConnectionCountPerHost = wkInitializeMaximumHTTPConnectionCountPerHost(preferredConnectionCount); 239 245 240 #if PLATFORM(MAC) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)246 #if USE(CFNETWORK) || PLATFORM(MAC) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) 241 247 static const unsigned unlimitedConnectionCount = 10000; 242 248 … … 246 252 if (ResourceRequest::httpPipeliningEnabled()) { 247 253 wkSetHTTPPipeliningMaximumPriority(ResourceLoadPriorityHighest); 254 #if !PLATFORM(WIN) 255 // FIXME: <rdar://problem/9375609> Implement minimum fast lane priority setting on Windows 248 256 wkSetHTTPPipeliningMinimumFastLanePriority(ResourceLoadPriorityMedium); 257 #endif 249 258 // When pipelining do not rate-limit requests sent from WebCore since CFNetwork handles that. 250 259 return unlimitedConnectionCount; -
trunk/Source/WebKit/win/ChangeLog
r85656 r85684 1 2011-05-03 David Kilzer <ddkilzer@apple.com> 2 3 <http://webkit.org/b/59838> Implement HTTP pipelining for CoreFoundation-based networking 4 5 Reviewed by Antti Koivisto. 6 7 * Interfaces/IWebViewPrivate.idl: 8 (IWebViewPrivate::httpPipeliningEnabled): Added declaration. 9 (IWebViewPrivate::setHTTPPipeliningEnabled): Added declaration. 10 * WebView.cpp: 11 (WebView::httpPipeliningEnabled): Added. 12 (WebView::setHTTPPipeliningEnabled): Added. 13 * WebView.h: 14 (WebView::httpPipeliningEnabled): Added declaration. 15 (WebView::setHTTPPipeliningEnabled): Added declaration. 16 1 17 2011-05-03 Adam Roben <aroben@apple.com> 2 18 -
trunk/Source/WebKit/win/Interfaces/IWebViewPrivate.idl
r84990 r85684 260 260 */ 261 261 HRESULT setMinimumTimerInterval([in] double interval); 262 263 /*! 264 @method _HTTPPipeliningEnabled 265 @abstract Checks the HTTP pipelining status. 266 @discussion Defaults to NO. 267 @result YES if HTTP pipelining is enabled, NO if not enabled. 268 */ 269 HRESULT httpPipeliningEnabled([out, retval] BOOL* enabled); 270 271 /*! 272 @method _setHTTPPipeliningEnabled: 273 @abstract Set the HTTP pipelining status. 274 @discussion Defaults to NO. 275 @param enabled The new HTTP pipelining status. 276 */ 277 HRESULT setHTTPPipeliningEnabled([in] BOOL enabled); 262 278 } -
trunk/Source/WebKit/win/WebView.cpp
r85653 r85684 122 122 #include <WebCore/ResourceHandle.h> 123 123 #include <WebCore/ResourceHandleClient.h> 124 #include <WebCore/ResourceRequest.h> 124 125 #include <WebCore/SchemeRegistry.h> 125 126 #include <WebCore/ScriptValue.h> … … 6738 6739 } 6739 6740 6741 HRESULT WebView::httpPipeliningEnabled(BOOL* enabled) 6742 { 6743 if (!enabled) 6744 return E_POINTER; 6745 *enabled = ResourceRequest::httpPipeliningEnabled(); 6746 return S_OK; 6747 } 6748 6749 HRESULT WebView::setHTTPPipeliningEnabled(BOOL enabled) 6750 { 6751 ResourceRequest::setHTTPPipeliningEnabled(enabled); 6752 return S_OK; 6753 } 6754 6740 6755 void WebView::setGlobalHistoryItem(HistoryItem* historyItem) 6741 6756 { -
trunk/Source/WebKit/win/WebView.h
r85393 r85684 830 830 virtual HRESULT STDMETHODCALLTYPE setMinimumTimerInterval( 831 831 /* [in] */ double); 832 833 virtual HRESULT STDMETHODCALLTYPE httpPipeliningEnabled( 834 /* [out, retval] */ BOOL* enabled); 835 836 virtual HRESULT STDMETHODCALLTYPE setHTTPPipeliningEnabled( 837 /* [in] */ BOOL); 832 838 833 839 virtual HRESULT STDMETHODCALLTYPE setUsesLayeredWindow(BOOL);
Note: See TracChangeset
for help on using the changeset viewer.