WKDownloadClient.h [plain text]
#ifndef WKDownloadClient_h
#define WKDownloadClient_h
#include <WebKit/WKBase.h>
typedef bool (*WKDownloadWillPerformHTTPRedirection)(WKDownloadRef download, WKURLResponseRef response, WKURLRequestRef newRequest, const void* clientInfo);
typedef void (*WKDownloadDidReceiveAuthenticationChallenge)(WKDownloadRef download, WKAuthenticationChallengeRef challenge, const void* clientInfo);
typedef WKStringRef (*WKDownloadDecideDestinationWithResponse)(WKDownloadRef download, WKURLResponseRef response, WKStringRef suggestedFilename, const void* clientInfo);
typedef void (*WKDownloadDidWriteData)(WKDownloadRef download, long long bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite, const void* clientInfo);
typedef void (*WKDownloadDidFinish)(WKDownloadRef download, const void* clientInfo);
typedef void (*WKDownloadDidFailWithError)(WKDownloadRef download, WKErrorRef error, WKDataRef resumeData, const void* clientInfo);
typedef struct WKDownloadClientBase {
int version;
const void * clientInfo;
} WKDownloadClientBase;
typedef struct WKDownloadClientV0 {
WKDownloadClientBase base;
WKDownloadWillPerformHTTPRedirection willPerformHTTPRedirection;
WKDownloadDidReceiveAuthenticationChallenge didReceiveAuthenticationChallenge;
WKDownloadDecideDestinationWithResponse decideDestinationWithResponse;
WKDownloadDidWriteData didWriteData;
WKDownloadDidFinish didFinish;
WKDownloadDidFailWithError didFailWithError;
} WKDownloadClientV0;
#endif