RESOLVED FIXED 42201
Use ResourceHandle object for synchronous loading
https://bugs.webkit.org/show_bug.cgi?id=42201
Summary Use ResourceHandle object for synchronous loading
Alexey Proskuryakov
Reported 2010-07-13 14:30:48 PDT
Improve code sharing, pave the way to eventually making callbacks into frame loader client.
Attachments
Part 1: Mac (56.57 KB, patch)
2010-07-13 14:45 PDT, Alexey Proskuryakov
no flags
Now with CFNetwork (81.86 KB, patch)
2010-07-13 16:38 PDT, Alexey Proskuryakov
no flags
updated patch (84.85 KB, patch)
2010-07-13 18:42 PDT, Alexey Proskuryakov
darin: review+
Alexey Proskuryakov
Comment 1 2010-07-13 14:45:25 PDT
Created attachment 61418 [details] Part 1: Mac
Early Warning System Bot
Comment 2 2010-07-13 14:52:28 PDT
WebKit Review Bot
Comment 3 2010-07-13 15:03:21 PDT
Alexey Proskuryakov
Comment 4 2010-07-13 15:23:05 PDT
I have these fixed locally.
Alexey Proskuryakov
Comment 5 2010-07-13 16:38:03 PDT
Created attachment 61431 [details] Now with CFNetwork
WebKit Review Bot
Comment 6 2010-07-13 16:44:32 PDT
WebKit Review Bot
Comment 7 2010-07-13 17:07:23 PDT
WebKit Review Bot
Comment 8 2010-07-13 17:23:47 PDT
Brady Eidson
Comment 9 2010-07-13 17:36:35 PDT
I'm still reviewing, but I don't like the name "firstRequest". "initialRequest" sounds much better to me.
Alexey Proskuryakov
Comment 10 2010-07-13 18:42:56 PDT
Created attachment 61452 [details] updated patch More build fixes, plus a fix for an issue found by Windows tests - do set ResourceHandleInternal::m_connection.
Alexey Proskuryakov
Comment 11 2010-07-13 18:47:29 PDT
> "initialRequest" sounds much better to me. As discussed on IRC, that's less precise. ResourceHandle changes the initial request in many ways before sending if (removing credentials, setting various properties). So, it's the first request that's being actually sent.
WebKit Review Bot
Comment 12 2010-07-13 19:41:52 PDT
Darin Adler
Comment 13 2010-07-14 10:44:24 PDT
Comment on attachment 61452 [details] updated patch In some other code we use originalRequest rather than firstRequest. Is this the same concept? > + void setAllowStoredCredentials(bool allow) { m_allowStoredCredentials = allow; } > + bool isDone() { return m_isDone; } > + > + CFMutableDataRef data() { return m_data.get(); } > + > + virtual void willSendRequest(ResourceHandle*, ResourceRequest&, const ResourceResponse& /*redirectResponse*/); > + virtual bool shouldUseCredentialStorage(ResourceHandle*); > + virtual void didReceiveAuthenticationChallenge(ResourceHandle*, const AuthenticationChallenge&); > + virtual void didReceiveResponse(ResourceHandle*, const ResourceResponse&); > + virtual void didReceiveData(ResourceHandle*, const char*, int, int /*lengthReceived*/); > + virtual void didFinishLoading(ResourceHandle*); > + virtual void didFail(ResourceHandle*, const ResourceError&); > +#if USE(PROTECTION_SPACE_AUTH_CALLBACK) > + virtual bool canAuthenticateAgainstProtectionSpace(ResourceHandle*, const ProtectionSpace&); > +#endif Can any of these be private? Looks like a compile failure on GTK.
Alexey Proskuryakov
Comment 14 2010-07-14 11:10:38 PDT
> In some other code we use originalRequest rather than firstRequest. Is this the same concept? I think that originalRequest is used for the request that hasn't been modified by network loader level yet (and we also have originalRequestCopy for the one that hasn't been modified by someone else, maybe a client). It's not quite the same. > Can any of these be private? > Looks like a compile failure on GTK. Addressed those. Committed <http://trac.webkit.org/changeset/63332>.
Alexey Proskuryakov
Comment 15 2010-07-14 11:57:15 PDT
More build fixes in r63340.
Alexey Proskuryakov
Comment 17 2010-07-14 17:17:53 PDT
Tiger behavior fix in r63376.
Alexey Proskuryakov
Comment 18 2010-07-14 17:20:44 PDT
And r63380.
Note You need to log in before you can comment on or make changes to this bug.