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*);
void didReceiveData(CFDataRef, CFIndex originalLength) override;
void didFinishLoading() override;
void didFail(CFErrorRef) override;
#if USE(NETWORK_CFDATA_ARRAY_CALLBACK)
void didReceiveDataArray(CFArrayRef dataArray) override;
#endif // USE(NETWORK_CFDATA_ARRAY_CALLBACK)
private:
void setupRequest(CFMutableURLRequestRef) override;
void setupConnectionScheduling(CFURLConnectionRef) override;
CFURLRequestRef willSendRequest(CFURLRequestRef, CFURLResponseRef) override;
void didReceiveResponse(CFURLConnectionRef, CFURLResponseRef) override;
CFCachedURLResponseRef willCacheResponse(CFCachedURLResponseRef) override;
void didReceiveChallenge(CFURLAuthChallengeRef) override;
void didSendBodyData(CFIndex totalBytesWritten, CFIndex totalBytesExpectedToWrite) override;
Boolean shouldUseCredentialStorage() override;
#if USE(PROTECTION_SPACE_AUTH_CALLBACK)
Boolean canRespondToProtectionSpace(CFURLProtectionSpaceRef) override;
#endif // USE(PROTECTION_SPACE_AUTH_CALLBACK)
void continueWillSendRequest(CFURLRequestRef) override;
void continueDidReceiveResponse() override;
void continueWillCacheResponse(CFCachedURLResponseRef) override;
#if USE(PROTECTION_SPACE_AUTH_CALLBACK)
void continueCanAuthenticateAgainstProtectionSpace(bool) override;
#endif // USE(PROTECTION_SPACE_AUTH_CALLBACK)
};
}
#endif // USE(CFNETWORK)
#endif // ResourceHandleCFURLConnectionDelegate_h