[Webkit-unassigned] [Bug 54688] ThreadableLoaderClient needs willSendRequest method.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 17 20:36:28 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=54688
--- Comment #5 from David Levin <levin at chromium.org> 2011-02-17 20:36:28 PST ---
Here's a possible alternative:
In ThreadableLoaderClient add this method:
virtual bool isDocumentThreadableLoaderClient() { return false; }
Create a new class:
class DocumentThreadableLoaderClient : public ThreadableLoaderClient {
public:
virtual bool isDocumentThreadableLoaderClient() { return true; }
// request may be modified
virtual void willSendRequest(SubresourceLoader*, ResourceRequest&, const ResourceResponse& /*redirectResponse*/) { }
};
In DocumentThreadableLoader::willSendRequest put the following in place of your current call to willSendRequest:
if (m_client->isDocumentThreadableLoaderClient())
static_cast<DocumentThreadableLoaderClient*>(m_client)->willSendRequest(....);
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list