WKBundlePagePolicyClient.h [plain text]
#ifndef WKBundlePagePolicyClient_h
#define WKBundlePagePolicyClient_h
#include <WebKit/WKBase.h>
enum {
WKBundlePagePolicyActionPassThrough,
WKBundlePagePolicyActionUse
};
typedef uint32_t WKBundlePagePolicyAction;
typedef WKBundlePagePolicyAction (*WKBundlePageDecidePolicyForNavigationActionCallback)(WKBundlePageRef page, WKBundleFrameRef frame, WKBundleNavigationActionRef navigationAction, WKURLRequestRef request, WKTypeRef* userData, const void* clientInfo);
typedef WKBundlePagePolicyAction (*WKBundlePageDecidePolicyForNewWindowActionCallback)(WKBundlePageRef page, WKBundleFrameRef frame, WKBundleNavigationActionRef navigationAction, WKURLRequestRef request, WKStringRef frameName, WKTypeRef* userData, const void* clientInfo);
typedef WKBundlePagePolicyAction (*WKBundlePageDecidePolicyForResponseCallback)(WKBundlePageRef page, WKBundleFrameRef frame, WKURLResponseRef response, WKURLRequestRef request, WKTypeRef* userData, const void* clientInfo);
typedef void (*WKBundlePageUnableToImplementPolicyCallback)(WKBundlePageRef page, WKBundleFrameRef frame, WKErrorRef error, WKTypeRef* userData, const void* clientInfo);
typedef struct WKBundlePagePolicyClientBase {
int version;
const void * clientInfo;
} WKBundlePagePolicyClientBase;
typedef struct WKBundlePagePolicyClientV0 {
WKBundlePagePolicyClientBase base;
WKBundlePageDecidePolicyForNavigationActionCallback decidePolicyForNavigationAction;
WKBundlePageDecidePolicyForNewWindowActionCallback decidePolicyForNewWindowAction;
WKBundlePageDecidePolicyForResponseCallback decidePolicyForResponse;
WKBundlePageUnableToImplementPolicyCallback unableToImplementPolicy;
} WKBundlePagePolicyClientV0;
#endif // WKBundlePagePolicyClient_h