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;
enum { kWKBundlePagePolicyClientCurrentVersion WK_ENUM_DEPRECATED("Use an explicit version number instead") = 0 };
typedef struct WKBundlePagePolicyClient {
int version;
const void * clientInfo;
WKBundlePageDecidePolicyForNavigationActionCallback decidePolicyForNavigationAction;
WKBundlePageDecidePolicyForNewWindowActionCallback decidePolicyForNewWindowAction;
WKBundlePageDecidePolicyForResponseCallback decidePolicyForResponse;
WKBundlePageUnableToImplementPolicyCallback unableToImplementPolicy;
} WKBundlePagePolicyClient WK_C_DEPRECATED("Use an explicit versioned struct instead");
#endif // WKBundlePagePolicyClient_h