Changeset 160988 in webkit


Ignore:
Timestamp:
Dec 23, 2013 12:41:08 AM (10 years ago)
Author:
brian.holt@samsung.com
Message:

[WK2] Implement platform specific Resource Response for SOUP
https://bugs.webkit.org/show_bug.cgi?id=125422

Reviewed by Martin Robinson.

SOUP specific Resource Response implementation for the Network
Process.

  • NetworkProcess/NetworkResourceLoader.cpp:

(WebKit::NetworkResourceLoader::continueWillSendRequest):

  • WebProcess/Network/WebResourceLoader.cpp:

(WebKit::WebResourceLoader::didReceiveResponseWithCertificateInfo):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r160986 r160988  
     12013-12-23  Brian Holt  <brian.holt@samsung.com>
     2
     3        [WK2] Implement platform specific Resource Response for SOUP
     4        https://bugs.webkit.org/show_bug.cgi?id=125422
     5
     6        Reviewed by Martin Robinson.
     7
     8        SOUP specific Resource Response implementation for the Network
     9        Process.
     10
     11        * NetworkProcess/NetworkResourceLoader.cpp:
     12        (WebKit::NetworkResourceLoader::continueWillSendRequest):
     13        * WebProcess/Network/WebResourceLoader.cpp:
     14        (WebKit::WebResourceLoader::didReceiveResponseWithCertificateInfo):
     15
    1162013-12-22  Kwang Yul Seo  <skyul@company100.net>
    217
  • trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp

    r160487 r160988  
    244244void NetworkResourceLoader::continueWillSendRequest(const ResourceRequest& newRequest)
    245245{
     246#if PLATFORM(MAC)
    246247    m_suggestedRequestForWillSendRequest.updateFromDelegatePreservingOldHTTPBody(newRequest.nsURLRequest(DoNotUpdateHTTPBody));
     248#elif USE(SOUP)
     249    // FIXME: Implement ResourceRequest::updateFromDelegatePreservingOldHTTPBody. See https://bugs.webkit.org/show_bug.cgi?id=126127.
     250    m_suggestedRequestForWillSendRequest.updateFromDelegatePreservingOldHTTPBody(newRequest);
     251#endif
    247252
    248253    RunLoop::main()->dispatch(bind(&NetworkResourceLoadScheduler::receivedRedirect, &NetworkProcess::shared().networkResourceLoadScheduler(), this, m_suggestedRequestForWillSendRequest.url()));
  • trunk/Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp

    r160487 r160988  
    107107
    108108    ResourceResponse responseCopy(response);
     109    // FIXME: This should use CertificateInfo to avoid the platform ifdefs. See https://bugs.webkit.org/show_bug.cgi?id=124724.
     110#if PLATFORM(MAC)
    109111    responseCopy.setCertificateChain(certificateInfo.certificateChain());
     112#elif USE(SOUP)
     113    responseCopy.setSoupMessageCertificate(certificateInfo.certificate());
     114    responseCopy.setSoupMessageTLSErrors(certificateInfo.tlsErrors());
     115#endif
    110116    m_coreLoader->didReceiveResponse(responseCopy);
    111117
Note: See TracChangeset for help on using the changeset viewer.