SynchronousResourceHandleCFURLConnectionDelegate.h [plain text]
#ifndef SynchronousResourceHandleCFURLConnectionDelegate_h
#define SynchronousResourceHandleCFURLConnectionDelegate_h
#if USE(CFNETWORK)
#include "ResourceHandleCFURLConnectionDelegate.h"
namespace WebCore {
class SynchronousResourceHandleCFURLConnectionDelegate final : public ResourceHandleCFURLConnectionDelegate {
public:
SynchronousResourceHandleCFURLConnectionDelegate(ResourceHandle*);
virtual void didReceiveData(CFDataRef, CFIndex originalLength) override;
virtual void didFinishLoading() override;
virtual void didFail(CFErrorRef) override;
#if USE(NETWORK_CFDATA_ARRAY_CALLBACK)
virtual void didReceiveDataArray(CFArrayRef dataArray) override;
#endif // USE(NETWORK_CFDATA_ARRAY_CALLBACK)
private:
virtual void setupRequest(CFMutableURLRequestRef) override;
virtual void setupConnectionScheduling(CFURLConnectionRef) override;
virtual CFURLRequestRef willSendRequest(CFURLRequestRef, CFURLResponseRef) override;
virtual void didReceiveResponse(CFURLConnectionRef, CFURLResponseRef) override;
virtual CFCachedURLResponseRef willCacheResponse(CFCachedURLResponseRef) override;
virtual void didReceiveChallenge(CFURLAuthChallengeRef) override;
virtual void didSendBodyData(CFIndex totalBytesWritten, CFIndex totalBytesExpectedToWrite) override;
virtual Boolean shouldUseCredentialStorage() override;
#if USE(PROTECTION_SPACE_AUTH_CALLBACK)
virtual Boolean canRespondToProtectionSpace(CFURLProtectionSpaceRef) override;
#endif // USE(PROTECTION_SPACE_AUTH_CALLBACK)
virtual void continueWillSendRequest(CFURLRequestRef) override;
virtual void continueDidReceiveResponse() override;
virtual void continueWillCacheResponse(CFCachedURLResponseRef) override;
#if USE(PROTECTION_SPACE_AUTH_CALLBACK)
virtual void continueCanAuthenticateAgainstProtectionSpace(bool) override;
#endif // USE(PROTECTION_SPACE_AUTH_CALLBACK)
};
}
#endif // USE(CFNETWORK)
#endif // ResourceHandleCFURLConnectionDelegate_h