Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
2008-03-17 Julien Chaffraix <julien.chaffraix@gmail.com>
Reviewed by Holger. <http://bugs.webkit.org/show_bug.cgi?id=17754> - Implement ResourceHandle::loadResourceSynchronously to dispatch synchronous requests. - Implement WebCoreSynchronousLoader, the ResourceHandleClient which holds the network data, response and error for us during the transfert. * platform/network/ResourceHandleInternal.h: Remove trailing white space. * platform/network/curl/ResourceHandleCurl.cpp: Add WebCoreSynchronousLoader (WebCore::WebCoreSynchronousLoader::resourceResponse): (WebCore::WebCoreSynchronousLoader::resourceError): (WebCore::WebCoreSynchronousLoader::data): (WebCore::WebCoreSynchronousLoader::WebCoreSynchronousLoader): (WebCore::WebCoreSynchronousLoader::didReceiveResponse): (WebCore::WebCoreSynchronousLoader::didReceiveData): (WebCore::WebCoreSynchronousLoader::didFinishLoading): (WebCore::WebCoreSynchronousLoader::didFail): (WebCore::ResourceHandle::loadResourceSynchronously): Implement method using WebCoreSynchronousLoader. * platform/network/curl/ResourceHandleManager.cpp: (WebCore::ResourceHandleManager::dispatchSynchronousJob): (WebCore::ResourceHandleManager::startJob): (WebCore::ResourceHandleManager::initializeHandle): Handle initialization method used both for synchronous and asynchronous job. * platform/network/curl/ResourceHandleManager.h: Canonical link: https://commits.webkit.org/24789@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@31109 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
138 additions
and 15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -160,7 +160,7 @@ namespace WebCore { | ||
#if USE(CURL) | ||
CURL* m_handle; | ||
char* m_url; | ||
struct curl_slist* m_customHeaders; | ||
ResourceResponse m_response; | ||
bool m_cancelled; | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters