Re: [webkit-dev] How to cancel a resource request

2009-10-23 Thread Jaroslav Gresula
Xan Lopez wrote: > On Fri, Oct 23, 2009 at 5:05 PM, Jaroslav Gresula > wrote: >> Xan Lopez wrote: >>> On Thu, Oct 22, 2009 at 11:18 AM, Jaroslav Gresula >>> wrote: >>>> Hi, >>>> >>>> In my WebKit port (based on the GTK por

Re: [webkit-dev] How to cancel a resource request

2009-10-23 Thread Jaroslav Gresula
Xan Lopez wrote: > On Thu, Oct 22, 2009 at 11:18 AM, Jaroslav Gresula > wrote: >> Hi, >> >> In my WebKit port (based on the GTK port) I would like to cancel a >> resource request depending on the resource length or its MIME type. >> >> I thought,

Re: [webkit-dev] How to cancel a resource request

2009-10-23 Thread Jaroslav Gresula
zaheer ahmad wrote: > hi, > ResourceLoader has a cancel api. so i think you can do the following > add addtl parameter to dispatchDidReceiveResponse to indicate if you should > cancel the resp > and do a loader->cancel() based on that. I don't like the idea of modifying FrameLoaderClient since it

[webkit-dev] How to cancel a resource request

2009-10-22 Thread Jaroslav Gresula
Hi, In my WebKit port (based on the GTK port) I would like to cancel a resource request depending on the resource length or its MIME type. I thought, dispatchDidReceiveResponse(DocumentLoader*, ...) in my WebCore::FrameLoaderClient implementation could be a good place for such action as I can ret