Changeset 150118 in webkit
- Timestamp:
- May 15, 2013, 9:22:14 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
platform/network/curl/ResourceHandleCurl.cpp (modified) (2 diffs)
-
platform/network/curl/ResourceHandleManager.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r150114 r150118 1 2013-05-15 Peter Gal <galpeter@inf.u-szeged.hu> 2 3 [curl] Remove version #if guards 4 https://bugs.webkit.org/show_bug.cgi?id=116152 5 6 Reviewed by Brent Fulgham. 7 8 No tests required. 9 10 * platform/network/curl/ResourceHandleCurl.cpp: 11 (WebCore::ResourceHandle::platformSetDefersLoading): Removed version guard. 12 * platform/network/curl/ResourceHandleManager.cpp: 13 (WebCore::writeCallback): Ditto. 14 (WebCore::headerCallback): Ditto. 15 (WebCore::readCallback): Ditto. 16 (WebCore::ResourceHandleManager::dispatchSynchronousJob): Ditto. 17 (WebCore::ResourceHandleManager::initializeHandle): Ditto. 18 1 19 2013-05-15 David Kilzer <ddkilzer@apple.com> 2 20 -
trunk/Source/WebCore/platform/network/curl/ResourceHandleCurl.cpp
r143487 r150118 147 147 void ResourceHandle::platformSetDefersLoading(bool defers) 148 148 { 149 #if LIBCURL_VERSION_NUM > 0x071200150 149 if (!d->m_handle) 151 150 return; … … 162 161 cancel(); 163 162 } 164 #else165 LOG_ERROR("Deferred loading is implemented if libcURL version is above 7.18.0");166 #endif167 163 } 168 164 -
trunk/Source/WebCore/platform/network/curl/ResourceHandleManager.cpp
r149716 r150118 211 211 return 0; 212 212 213 #if LIBCURL_VERSION_NUM > 0x071200214 213 // We should never be called when deferred loading is activated. 215 214 ASSERT(!d->m_defersLoading); 216 #endif217 215 218 216 size_t totalSize = size * nmemb; … … 254 252 return 0; 255 253 256 #if LIBCURL_VERSION_NUM > 0x071200257 254 // We should never be called when deferred loading is activated. 258 255 ASSERT(!d->m_defersLoading); 259 #endif260 256 261 257 size_t totalSize = size * nmemb; … … 339 335 return 0; 340 336 341 #if LIBCURL_VERSION_NUM > 0x071200342 337 // We should never be called when deferred loading is activated. 343 338 ASSERT(!d->m_defersLoading); 344 #endif345 339 346 340 if (!size || !nmemb) … … 620 614 ResourceHandleInternal* handle = job->getInternal(); 621 615 622 #if LIBCURL_VERSION_NUM > 0x071200623 616 // If defersLoading is true and we call curl_easy_perform 624 617 // on a paused handle, libcURL would do the transfert anyway 625 618 // and we would assert so force defersLoading to be false. 626 619 handle->m_defersLoading = false; 627 #endif628 620 629 621 initializeHandle(job); … … 688 680 d->m_handle = curl_easy_init(); 689 681 690 #if LIBCURL_VERSION_NUM > 0x071200691 682 if (d->m_defersLoading) { 692 683 CURLcode error = curl_easy_pause(d->m_handle, CURLPAUSE_ALL); … … 695 686 ASSERT_UNUSED(error, error == CURLE_OK); 696 687 } 697 #endif698 688 #ifndef NDEBUG 699 689 if (getenv("DEBUG_CURL"))
Note:
See TracChangeset
for help on using the changeset viewer.