[webkit-dev] Download client
naiem.shaik at gmail.com
Sun Nov 18 21:02:06 PST 2007
Hi Ryan and All,
Thanks for your inputs.
I have created a CURL handle and am able to download the content.
But my problem with this implementation is that download happens synchronously.
The existing CURL handle which WebKit uses to open the pages is not used.
If i create a thread and run this download in new thread will it be thread safe.
I am planning to implement proper download client, so options like
download pause,resume,progress and number of bytes transferred all can
So any pointers on how to proceed with implementation.
On Nov 17, 2007 6:38 AM, Ryan Leavengood <leavengood at gmail.com> wrote:
> On Nov 16, 2007 12:47 AM, Brady Eidson <beidson at apple.com> wrote:
> > In FrameLoaderClientGtk.cpp, I see that
> > void FrameLoaderClient::download(ResourceHandle*, const ResourceRequest&,
> > const ResourceRequest&, const ResourceResponse&)
> > is not implemented.
> > Until it is, it would seem that WebKitGtk is incapable of downloading files,
> > even if you set its policy to do so.
> Since the GTK port uses CURL it shouldn't be too hard to implement the
> above using CURL. In fact, I found this example in the libcurl
> documentation that downloads a file and has a GTK progress bar:
> Naiem, this should be all you need as inspiration to write the above method.
More information about the webkit-dev