Changeset 152229 in webkit


Ignore:
Timestamp:
Jul 1, 2013 9:47:45 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[Curl] WebDownload init method is not implemented.
https://bugs.webkit.org/show_bug.cgi?id=118241

Patch by peavo@outlook.com <peavo@outlook.com> on 2013-07-01
Reviewed by Brent Fulgham.

The WebDownload::init() method called when a normal load is changed to a download
because of a decision by the policy delegate, is not implemented for Curl.

  • WebDownloadCurl.cpp:

(WebDownload::init): Implement init() method.

Location:
trunk/Source/WebKit/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/win/ChangeLog

    r152218 r152229  
     12013-07-01  peavo@outlook.com  <peavo@outlook.com>
     2
     3        [Curl] WebDownload init method is not implemented.
     4        https://bugs.webkit.org/show_bug.cgi?id=118241
     5
     6        Reviewed by Brent Fulgham.
     7
     8        The WebDownload::init() method called when a normal load is changed to a download
     9        because of a decision by the policy delegate, is not implemented for Curl.
     10
     11        * WebDownloadCurl.cpp:
     12        (WebDownload::init): Implement init() method.
     13
    1142013-07-01  Kangil Han  <kangil.han@samsung.com>
    215
  • trunk/Source/WebKit/win/WebDownloadCurl.cpp

    r151067 r152229  
    5858void WebDownload::init(ResourceHandle* handle, const ResourceRequest& request, const ResourceResponse& response, IWebDownloadDelegate* delegate)
    5959{
    60    notImplemented();
     60    if (!handle)
     61        return;
     62
     63    // Stop previous request
     64    handle->setDefersLoading(true);
     65
     66    m_request.adoptRef(WebMutableURLRequest::createInstance(request));
     67
     68    m_delegate = delegate;
     69
     70    KURL url(ParsedURLString, request.url());
     71
     72    m_download.init(this, url);
     73
     74    start();
    6175}
    6276
Note: See TracChangeset for help on using the changeset viewer.