hi, <br>ResourceLoader has a cancel api. so i think you can do the following<br>add addtl parameter to dispatchDidReceiveResponse to indicate if you should cancel the resp<br>and do a loader-&gt;cancel() based on that.<br>
<br>Thanks,<br>Zaheer<br><br><div class="gmail_quote">On Thu, Oct 22, 2009 at 1:48 PM, Jaroslav Gresula <span dir="ltr">&lt;<a href="mailto:jgresula.LEAVE-THIS-OUT@gmail.com">jgresula.LEAVE-THIS-OUT@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
In my WebKit port (based on the GTK port) I would like to cancel a<br>
resource request depending on the resource length or its MIME type.<br>
<br>
I thought, dispatchDidReceiveResponse(DocumentLoader*, ...) in my<br>
WebCore::FrameLoaderClient implementation could be a good place for such<br>
action as I can retrieve the length and the MIME type from the<br>
ResourceResponse argument there. However I did not find the way how to<br>
cancel the request.<br>
<br>
Any help would be appreciated.<br>
<br>
Thanks,<br>
<font color="#888888">--<br>
Jarda<br>
<a href="http://jagpdf.org" target="_blank">http://jagpdf.org</a><br>
<br>
_______________________________________________<br>
webkit-dev mailing list<br>
<a href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a><br>
<a href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev" target="_blank">http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev</a><br>
</font></blockquote></div><br>