Changeset 161625 in webkit


Ignore:
Timestamp:
Jan 10, 2014 1:11:00 AM (10 years ago)
Author:
Carlos Garcia Campos
Message:

Implement NetworkResourceLoader::receivedCancellation
https://bugs.webkit.org/show_bug.cgi?id=126129

Reviewed Alexey Proskuryakov.

Implement ResourceHandleClient::receivedCancellation() in the
network process to cancel the load when cancellation is received
from the authentication manager like the web process does.

  • NetworkProcess/NetworkResourceLoader.cpp:

(WebKit::NetworkResourceLoader::receivedCancellation): Cancel the load.

  • NetworkProcess/NetworkResourceLoader.h:
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r161624 r161625  
     12014-01-10  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Implement NetworkResourceLoader::receivedCancellation
     4        https://bugs.webkit.org/show_bug.cgi?id=126129
     5
     6        Reviewed Alexey Proskuryakov.
     7
     8        Implement ResourceHandleClient::receivedCancellation() in the
     9        network process to cancel the load when cancellation is received
     10        from the authentication manager like the web process does.
     11
     12        * NetworkProcess/NetworkResourceLoader.cpp:
     13        (WebKit::NetworkResourceLoader::receivedCancellation): Cancel the load.
     14        * NetworkProcess/NetworkResourceLoader.h:
     15
    1162014-01-09  Jinwoo Song  <jinwoo7.song@samsung.com>
    217
  • trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp

    r161338 r161625  
    337337}
    338338
     339void NetworkResourceLoader::receivedCancellation(ResourceHandle* handle, const AuthenticationChallenge& challenge)
     340{
     341    ASSERT_UNUSED(handle, handle == m_handle);
     342
     343    m_handle->cancel();
     344    didFail(m_handle.get(), cancelledError(m_request));
     345}
     346
    339347IPC::Connection* NetworkResourceLoader::messageSenderConnection()
    340348{
  • trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoader.h

    r161338 r161625  
    9393    virtual void didReceiveAuthenticationChallenge(WebCore::ResourceHandle*, const WebCore::AuthenticationChallenge&) OVERRIDE;
    9494    virtual void didCancelAuthenticationChallenge(WebCore::ResourceHandle*, const WebCore::AuthenticationChallenge&) OVERRIDE;
     95    virtual void receivedCancellation(WebCore::ResourceHandle*, const WebCore::AuthenticationChallenge&) OVERRIDE;
    9596    virtual bool usesAsyncCallbacks() OVERRIDE { return true; }
    9697
Note: See TracChangeset for help on using the changeset viewer.