[webkit-reviews] review denied: [Bug 54313] ThreadableLoaderClient doesn't support WebURLLoader usage. : [Attachment 82553] Proposed Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 15 17:44:49 PST 2011


David Levin <levin at chromium.org> has denied Bill Budge <bbudge at gmail.com>'s
request for review:
Bug 54313: ThreadableLoaderClient doesn't support WebURLLoader usage.
https://bugs.webkit.org/show_bug.cgi?id=54313

Attachment 82553: Proposed Patch
https://bugs.webkit.org/attachment.cgi?id=82553&action=review

------- Additional Comments from David Levin <levin at chromium.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=82553&action=review

Just a few things to clean up.

> Source/WebCore/loader/DocumentThreadableLoader.cpp:243
> +    ASSERT_UNUSED(loader, loader == m_loader);

I think this is missing the following:

if (!m_actualRequest)
    m_client->didReceiveCachedMetadata(data, lengthReceived)

> Source/WebCore/loader/DocumentThreadableLoader.h:49
> +    class DocumentThreadableLoader : public
RefCounted<DocumentThreadableLoader>, public ThreadableLoader, protected
SubresourceLoaderClient  {

"protected SubresourceLoaderClient" should be "private SubresourceLoaderClient"
again.

> Source/WebCore/loader/DocumentThreadableLoader.h:57
> +	   virtual void setDefersLoading(bool);

I suspect that you'll need to make this method public.

> Source/WebCore/loader/DocumentThreadableLoader.h:78
> +	   virtual void didDownloadData(SubresourceLoader*, int dataLength);

This isn't implemented in DocumentThreadableLoader.cpp (and I doubt that it
should be here).

> Source/WebCore/xml/XMLHttpRequest.cpp:990
> +void XMLHttpRequest::didFinishLoading(unsigned long identifier, double
finishTime)

This will likely result in a compile error since "finishTime" isn't used in
this function (just omit the parameter name).


More information about the webkit-reviews mailing list