AsynchronousNetworkLoaderClient.h [plain text]
#ifndef AsynchronousNetworkLoaderClient_h
#define AsynchronousNetworkLoaderClient_h
#include "NetworkLoaderClient.h"
#include "ShareableResource.h"
#include <wtf/PassOwnPtr.h>
#if ENABLE(NETWORK_PROCESS)
namespace WebKit {
class AsynchronousNetworkLoaderClient : public NetworkLoaderClient {
public:
static PassOwnPtr<NetworkLoaderClient> create()
{
return adoptPtr(new AsynchronousNetworkLoaderClient());
}
private:
AsynchronousNetworkLoaderClient();
virtual void willSendRequest(NetworkResourceLoader*, WebCore::ResourceRequest& newRequest, const WebCore::ResourceResponse& redirectResponse) OVERRIDE;
virtual void canAuthenticateAgainstProtectionSpace(NetworkResourceLoader*, const WebCore::ProtectionSpace&) OVERRIDE;
virtual void didReceiveResponse(NetworkResourceLoader*, const WebCore::ResourceResponse&) OVERRIDE;
virtual void didReceiveBuffer(NetworkResourceLoader*, WebCore::SharedBuffer*, int encodedDataLength) OVERRIDE;
virtual void didSendData(NetworkResourceLoader*, unsigned long long bytesSent, unsigned long long totalBytesToBeSent) OVERRIDE;
virtual void didFinishLoading(NetworkResourceLoader*, double finishTime) OVERRIDE;
virtual void didFail(NetworkResourceLoader*, const WebCore::ResourceError&) OVERRIDE;
};
}
#endif // ENABLE(NETWORK_PROCESS)
#endif // AsynchronousNetworkLoaderClient_h