2011-02-26 Andreas Kling <kling@webkit.org>
authorAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 28 Feb 2011 22:00:16 +0000 (19:00 -0300)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 28 Feb 2011 22:00:16 +0000 (19:00 -0300)
commit757fbfda530f95845c54e600cf1554a9b74f6789
treea50d2b1033d7dea1b00931b225d0ee8a23539b61
parentac25b02f46a0bc8c15b0c6964c2859071da1daf2
2011-02-26  Andreas Kling  <kling@webkit.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Enable usage of synchronous HTTP feature in Qt
        https://bugs.webkit.org/show_bug.cgi?id=37191

        Currently, we spin an event loop when doing synchronous calls to
        wait for completion. This patch uses synchronous requests in Qt,
        if available, and spins the event loop as a fallback solution.

        Based on work by Simon Hausmann and Peter Hartmann.

        * platform/network/qt/QNetworkReplyHandler.cpp:
        (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
        (WebCore::QNetworkReplyHandler::start):
        * platform/network/qt/QNetworkReplyHandler.h:
        * platform/network/qt/ResourceHandleQt.cpp:
        (WebCore::WebCoreSynchronousLoader::setReplyFinished):
        (WebCore::WebCoreSynchronousLoader::WebCoreSynchronousLoader):
        (WebCore::WebCoreSynchronousLoader::didFinishLoading):
        (WebCore::WebCoreSynchronousLoader::didFail):
        (WebCore::ResourceHandle::loadResourceSynchronously):

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

Conflicts:

Source/WebCore/ChangeLog
Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp
Source/WebCore/platform/network/qt/QNetworkReplyHandler.h
Source/WebCore/platform/network/qt/ResourceHandleQt.cpp
WebCore/ChangeLog
WebCore/platform/network/qt/QNetworkReplyHandler.cpp
WebCore/platform/network/qt/QNetworkReplyHandler.h
WebCore/platform/network/qt/ResourceHandleQt.cpp