⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 150118 in webkit


Ignore:
Timestamp:
May 15, 2013, 9:22:14 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[curl] Remove version #if guards
​https://bugs.webkit.org/show_bug.cgi?id=116152

Patch by Peter Gal <​galpeter@inf.u-szeged.hu> on 2013-05-15
Reviewed by Brent Fulgham.

No tests required.

  • platform/network/curl/ResourceHandleCurl.cpp:

(WebCore::ResourceHandle::platformSetDefersLoading): Removed version guard.

  • platform/network/curl/ResourceHandleManager.cpp:

(WebCore::writeCallback): Ditto.
(WebCore::headerCallback): Ditto.
(WebCore::readCallback): Ditto.
(WebCore::ResourceHandleManager::dispatchSynchronousJob): Ditto.
(WebCore::ResourceHandleManager::initializeHandle): Ditto.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r150114 r150118  
     12013-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
    1192013-05-15  David Kilzer  <ddkilzer@apple.com>
    220
  • trunk/Source/WebCore/platform/network/curl/ResourceHandleCurl.cpp

    r143487 r150118  
    147147void ResourceHandle::platformSetDefersLoading(bool defers)
    148148{
    149 #if LIBCURL_VERSION_NUM > 0x071200
    150149    if (!d->m_handle)
    151150        return;
    … …  
    162161            cancel();
    163162    }
    164 #else
    165     LOG_ERROR("Deferred loading is implemented if libcURL version is above 7.18.0");
    166 #endif
    167163}
    168164
  • trunk/Source/WebCore/platform/network/curl/ResourceHandleManager.cpp

    r149716 r150118  
    211211        return 0;
    212212
    213 #if LIBCURL_VERSION_NUM > 0x071200
    214213    // We should never be called when deferred loading is activated.
    215214    ASSERT(!d->m_defersLoading);
    216 #endif
    217215
    218216    size_t totalSize = size * nmemb;
    … …  
    254252        return 0;
    255253
    256 #if LIBCURL_VERSION_NUM > 0x071200
    257254    // We should never be called when deferred loading is activated.
    258255    ASSERT(!d->m_defersLoading);
    259 #endif
    260256
    261257    size_t totalSize = size * nmemb;
    … …  
    339335        return 0;
    340336
    341 #if LIBCURL_VERSION_NUM > 0x071200
    342337    // We should never be called when deferred loading is activated.
    343338    ASSERT(!d->m_defersLoading);
    344 #endif
    345339
    346340    if (!size || !nmemb)
    … …  
    620614    ResourceHandleInternal* handle = job->getInternal();
    621615
    622 #if LIBCURL_VERSION_NUM > 0x071200
    623616    // If defersLoading is true and we call curl_easy_perform
    624617    // on a paused handle, libcURL would do the transfert anyway
    625618    // and we would assert so force defersLoading to be false.
    626619    handle->m_defersLoading = false;
    627 #endif
    628620
    629621    initializeHandle(job);
    … …  
    688680    d->m_handle = curl_easy_init();
    689681
    690 #if LIBCURL_VERSION_NUM > 0x071200
    691682    if (d->m_defersLoading) {
    692683        CURLcode error = curl_easy_pause(d->m_handle, CURLPAUSE_ALL);
    … …  
    695686        ASSERT_UNUSED(error, error == CURLE_OK);
    696687    }
    697 #endif
    698688#ifndef NDEBUG
    699689    if (getenv("DEBUG_CURL"))
Note: See TracChangeset for help on using the changeset viewer.